This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install scons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/GodotNativeTools/godot_headers | |
git clone https://github.com/GodotNativeTools/godot-cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scons godotbinpath="/Applications/Godot.app/Contents/MacOs/Godot" platform=osx use_llvm=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GODOT_HEADERS=path to godot_headers | |
CPP_BINDINGS=path to cpp-godot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <core/Godot.hpp> | |
#include <Reference.hpp> | |
#include <core/String.hpp> | |
#include <core/Array.hpp> | |
using namespace godot; | |
class Simple : public GodotScript<Reference> { | |
GODOT_CLASS(Simple); | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
import os | |
# platform= makes it in line with Godots scons file, keeping p for backwards compatibility | |
platform = ARGUMENTS.get("p", "linux") | |
platform = ARGUMENTS.get("platform", platform) | |
target_arch = ARGUMENTS.get('a', ARGUMENTS.get('arch', '64')) | |
# This makes sure to keep the session environment variables on windows, | |
# that way you can run scons in a vs 2017 prompt and it will find all the required tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scons platform=osx use_llvm=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node | |
func _ready(): | |
var simple = load("res://simple.gdns").new() | |
simple.say(simple.hello("World")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tutorial root directory/ | |
├── playerlib/ | |
│ └── src/ | |
└── playerdemo/ | |
└── libs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
import os | |
# platform= makes it in line with Godots scons file, keeping p for backwards compatibility | |
platform = ARGUMENTS.get("p", "linux") | |
platform = ARGUMENTS.get("platform", platform) | |
target_arch = ARGUMENTS.get('a', ARGUMENTS.get('arch', '64')) | |
# This makes sure to keep the session environment variables on windows, | |
# that way you can run scons in a vs 2017 prompt and it will find all the required tools |