Le_Dieu_du_fond_du_Jardin/docs/starting-a-game.md

20 lines
564 B
Markdown
Raw Normal View History

2020-04-18 22:06:40 +02:00
# Starting a game
Escoria looks for a start script for your game.
You can configure its path in `platform/game_start_script`.
It should look like this
```
:start
change_scene res://game-dir/rooms/your-first-room/scene.tscn
```
Note that the `:start` event is not used anywhere else. The start script
does not use `:load`, because loading save games has to disable events. So
if `:load` was used, your legitimate events at the start of your game would
not work. And not checking for game loads would completely break your game
every time you load a save!