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!
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 buildor
scons platform=linux target=template_debug dev_build=yes
scons platform=linux target=template_release respectively.
For autocompletion run just prepare_for_lsp. clangd and other tools
would enable suggestions and detect generated compile_commands.json.
