mirror of
https://github.com/Foxelyss/Minesweeper.git
synced 2026-05-30 16:43:53 +00:00
Minesweeper made using Godot` GDExtension
- C++ 93.3%
- Python 3.2%
- Just 1.2%
- Shell 0.8%
- GDScript 0.8%
- Other 0.7%
| docker-build-env | ||
| godot-cpp@98c143a483 | ||
| project | ||
| src | ||
| .clang-format | ||
| .gitignore | ||
| .gitmodules | ||
| build_all.sh | ||
| compress_builds.sh | ||
| justfile | ||
| README.md | ||
| SConstruct | ||
Minesweeper made in C++ with Godot!
You can play it on itch.io https://foxelyss.itch.io/minesweeper!
It was pain to program because:
- Godot 4 API doesn't have add_property, i.e. every property needs setter and getter and code to link it with Godot
- Godot docs have no docs how to make a release build of GDExtension
- There is no tutorials online how to use event's. To understand that
_inputhas as its argumentRef<InputEvent> eventwhich can be casted to pointer is impossible unless you check Godot source code. - GDExtension API is just a labirinth of unused functionality
- Debugging and printing info doesn't always work as expected!
Building
Requirements: C++ 17 compiler, just, scons
For simplicity, there is a just file which does building and etc.
just build linux yes # for dev
just build linux # for release build
or
scons platform=linux target=template_debug dev_build=yes
scons platform=linux target=template_release
respectively.
Autocompletion
For autocompletion run just prepare_for_lsp. clangd and other tools
would enable suggestions and detect generated compile_commands.json.