Skip to content

Foxelyss/Minesweeper

Repository files navigation

Minesweeper made in C++ with Godot!

Gameplay

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 _input has as its argument Ref<InputEvent> event which 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.