Feel free to ask me any questions.
You only need to do this once each time you clone the repo.
$ git submodule init --recursive
$ git submodule update
Go into the godot-cpp
folder and follow their build instructions, which
is basically running scons
. It may take several minutes to compile this part!
Back to this repo's root directory, run:
$ make
(sorry it's unix only)
You might need to fix the name of the godot-cpp static library in the
Makefile
.
It should be on the bin
folder of this repo now. Place it inside your godot
projet.
And link out library to the corresponding platform. Save the resource with the
*.gdnlib
extension.
In the inspector, write the name of the class imported (GeneratedTileMap
) and
choose the gdnlib
file generated from the previous step. Save this resource
as a *.gdns
file.
Create a Godot scene as usual, attach the NativeScript to a TileMap node, and
call its generate()
method after setting the parameters in the inspector. You
might need to reopen the scene or reload Godot for the exported variables to
appear in the inspector!