Issue 315 (#341)
* feat: accept_input implemented * feat: More fixes for accept_input and tests for it * feat: play_snd implemented * fix: Removed game_over and queue_animation commands * docs: Automatic update of API docs * fix: FIxes schedule_event command * feat: Implemented slide and slide_block * feat: Implemented turn_to * docs: Automatic update of API docs Co-authored-by: Dennis Ploeger <develop@dieploegers.de> Co-authored-by: dploeger <dploeger@users.noreply.github.com>
This commit is contained in:
11
game/rooms/room10/esc/button_accept_input_test.esc
Normal file
11
game/rooms/room10/esc/button_accept_input_test.esc
Normal file
@@ -0,0 +1,11 @@
|
||||
# Test the accept_input command
|
||||
|
||||
:use
|
||||
say player "Hello. I will now walk a bit and won't listen at what you say!"
|
||||
accept_input NONE
|
||||
walk_block player player_start
|
||||
walk_block player accept_input_location
|
||||
say player "Ha! Now you can't even skip this text!" dialog_box_inset
|
||||
accept_input SKIP
|
||||
say player "Okay, you can skip this text, but still not move me."
|
||||
accept_input ALL
|
||||
@@ -1,3 +1,3 @@
|
||||
:use
|
||||
|
||||
set_sound_state bg_sound res://game/sfx/sounds/laser1.ogg false
|
||||
play_snd res://game/sfx/sounds/laser1.ogg
|
||||
|
||||
18
game/rooms/room10/esc/button_slide.esc
Normal file
18
game/rooms/room10/esc/button_slide.esc
Normal file
@@ -0,0 +1,18 @@
|
||||
# Testing the slide and slide_block command
|
||||
|
||||
:use
|
||||
say player "UUUuugh. I'm not feeling so well..."
|
||||
|
||||
slide_block player slide_pos_1
|
||||
|
||||
say player "Ugh!"
|
||||
|
||||
slide player slide_pos_2
|
||||
sched_event 5 button_slide slide_back
|
||||
|
||||
say player "Heeeeeeeelp!"
|
||||
|
||||
|
||||
:slide_back
|
||||
slide_block player slide_location
|
||||
say player "That's better."
|
||||
9
game/rooms/room10/esc/button_turn_to.esc
Normal file
9
game/rooms/room10/esc/button_turn_to.esc
Normal file
@@ -0,0 +1,9 @@
|
||||
:use
|
||||
|
||||
say player "Huh?"
|
||||
|
||||
turn_to player 180 true
|
||||
|
||||
say player "Nothing."
|
||||
|
||||
turn_to player 0
|
||||
Reference in New Issue
Block a user