sl@cccfr.de 39a9c9c5ee move repo 2 gadi atpakaļ
..
bin 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
src 39a9c9c5ee move repo 2 gadi atpakaļ
Makefile 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
README.md 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
default_env.tres 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
icon.png 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
main.gd 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
main.tscn 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ
project.godot 552d344e17 fix: fixed errors and added more examples 4 gadi atpakaļ

README.md

GDNative Simple Example

This example demonstrates how you can use the gdnative Go package to create your own Godot bindings with Go.

Compiling

Dependencies:

  • golang 1.6+

CGO (Cross platform)

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

Usage

Create a new object using load("res://SIMPLE.gdns").new()

This object has following methods you can use:

  • get_data()