Updated tutorial_gdscript_efficiently (markdown)

reduz 2014-09-20 08:43:56 -07:00
parent e72b977238
commit 79231b6302

@ -236,6 +236,22 @@ func game():
```
Dictionaries can also be used as data markup or quick structures. While GDScript dictionaries resemble python dictionaries, it also supports Lua style syntax an indexing, which makes it very useful for writing initial states and quick structs:
```
# same example, lua-style
# this syntax is a lot more readable and usable
var d = {
name="john",
age:22
}
print("Name: ", d.name, " Age: ", d.age ) # used "." based indexing
```