sl@cccfr.de 39a9c9c5ee move repo | 2 年之前 | |
---|---|---|
.. | ||
bin | 4 年之前 | |
src | 2 年之前 | |
Makefile | 4 年之前 | |
README.md | 4 年之前 | |
default_env.tres | 4 年之前 | |
icon.png | 4 年之前 | |
main.gd | 4 年之前 | |
main.tscn | 4 年之前 | |
project.godot | 4 年之前 |
This example demonstrates how you can use the gdnative
Go package to create
your own Godot bindings with Go.
Dependencies:
You can use golang to compile the library if you have it installed:
go build -v -buildmode=c-shared -o libsimple.so ./src/simple.go && mv libsimple.so ./bin
Create a new object using load("res://SIMPLE.gdns").new()
This object has following methods you can use:
get_data()