Event flags implementation (#382)

* Added event flags
* Added transition ESC command
* Also edited .gitignore to ignore .translation files
* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-09-07 09:13:09 +02:00
committed by GitHub
parent 903422960a
commit b4bf5b82d6
51 changed files with 1071 additions and 305 deletions

View File

@@ -0,0 +1,5 @@
:exit_scene
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
change_scene "res://game/rooms/room10/room10.tscn"

View File

@@ -0,0 +1,5 @@
:use
transition curtain out
wait 2
transition fade_black in

View File

@@ -0,0 +1,3 @@
:look | NO_HUD
say player "NO_HUD"

View File

@@ -0,0 +1,3 @@
:look | NO_SAVE
say player "NO_SAVE"

View File

@@ -0,0 +1,3 @@
:look | NO_TT
say player "NO_TT."

View File

@@ -0,0 +1,3 @@
:look | TK
say player "TK"

View File

@@ -0,0 +1,5 @@
:exit_scene
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
transition fade_black out
change_scene "res://game/rooms/room12/room12.tscn" true

View File

@@ -0,0 +1,18 @@
:setup
set_state bg_music off false
> [eq ESC_LAST_SCENE room10]
teleport player r11_l_exit
# Set player look right
set_angle player 180
stop
> [eq ESC_LAST_SCENE room12]
teleport player r11_r_exit
# Set player look left
set_angle player 270
stop
> [!last_scene]
teleport player player_start
stop