sl@cccfr.de 39a9c9c5ee move repo | 2 years ago | |
---|---|---|
.. | ||
bin | 4 years ago | |
src | 2 years ago | |
.gdb_history | 4 years ago | |
Makefile | 4 years ago | |
README.md | 4 years ago | |
default_env.tres | 5 years ago | |
icon.png | 5 years ago | |
main.gd | 4 years ago | |
main.tscn | 4 years ago | |
project.godot | 5 years ago |
This example demonstrates how you can use the gdnative
Go package to create
your own Godot bindings with Go. On this example, we use class auto registration
so the gdnativego
compiler utility will run automatically to create all the
needed boilerplate in your behalf.
note: if you want to see a manual registration example look at the SimpleDemoManual
example
Dependencies:
You can use golang to compile the library if you have it installed, just run make:
make
You can also run go build
manually to compile the GDNative library:
go build -v -buildmode=c-shared -o libsimple.so ./src/simple.go && mv libsimple.so ./bin
You can
Create a new object using load("res://SIMPLE.gdns").new()
This object has following methods you can use:
get_data()