Adds "name" parameter to ESC spawn command (#410)

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-10-07 08:22:11 +02:00
committed by GitHub
parent 378f29283d
commit 41902b5791
11 changed files with 128 additions and 90 deletions

View File

@@ -4,7 +4,7 @@ say player "That must be the command to open the door."
:use
> [!r8_m_door_open]
#superpose_scene "res://game/rooms/room08/puzzle/10_buttons_puzzle.tscn"
spawn "res://game/rooms/room08/puzzle/10_buttons_puzzle.tscn"
spawn puzzle "res://game/rooms/room08/puzzle/10_buttons_puzzle.tscn"
> [r8_m_door_open]
say player "The door is already open."

13
game/start_game.esc Executable file → Normal file
View File

@@ -1,4 +1,13 @@
:start
:init
spawn _main_menu res://game/ui/commons/main_menu/main_menu.tscn false
set_active _main_menu true
:newgame
# Hide main menu
set_active _main_menu false
# 1/ Simple scene
change_scene res://game/rooms/room01/room01.tscn
@@ -36,3 +45,5 @@ change_scene res://game/rooms/room01/room01.tscn
# 12/ Event flags tests 2
#change_scene res://game/rooms/room12/room12.tscn