3 ms·
GDScript is just Python that has some tweaks. For example to preload a child node you put this in a node's member space. onready var enemy = $Enemy Variables
by csdreamer7 7y ago
GDScript is just Python that has some tweaks.
For example to preload a child node you put this in a node's member space.
onready var enemy = $Enemy
Variables needing to be declared with the var keyword is the biggest change in the language.
var flag = some_function_result()
Other changes include expanding Python with more keywords useful for the editor and game programming.
It is very nice for prototyping. Still looking forward to that C# AOT support in later releases.
- vincent-toups 7y agoIt doesn't have lambda, even the bad lambda from python.
- aaronsnoswell 7y agoThis is an intentional design decision in the language - not having lambda functions / functions as first-class citizens makes the code easier to optimize internally.
- vincent-toups 7y agoIt also makes me feel like I'm programming in 1987. LuaJIT does fine with lambdas and I'd bet good money chibi-scheme is faster than GDScript. Its not a really good excuse.