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:
Dennis Ploeger
2021-07-29 23:05:24 +02:00
committed by GitHub
parent df1ec0c814
commit 90f880d090
38 changed files with 622 additions and 480 deletions

View 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

View File

@@ -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

View 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."

View File

@@ -0,0 +1,9 @@
:use
say player "Huh?"
turn_to player 180 true
say player "Nothing."
turn_to player 0

View File

@@ -131,6 +131,81 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 76.7617, 437.649 )
[node name="button_accept_input" parent="Hotspots" instance=ExtResource( 8 )]
position = Vector2( 823.113, 155.354 )
global_id = "test_accept_input"
esc_script = "res://game/rooms/room10/esc/button_accept_input_test.esc"
tooltip_name = "Test Accept Input"
[node name="Label" type="Label" parent="Hotspots/button_accept_input"]
margin_left = -3.6864
margin_top = -38.4435
margin_right = 71.3136
margin_bottom = -7.44354
text = "Test Accept
Input"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ESCLocation" type="Position2D" parent="Hotspots/button_accept_input"]
position = Vector2( -1.05322, 214.863 )
script = ExtResource( 5 )
global_id = "accept_input_location"
[node name="button_slide" parent="Hotspots" instance=ExtResource( 8 )]
position = Vector2( 939.497, 154.301 )
global_id = "button_slide"
esc_script = "res://game/rooms/room10/esc/button_slide.esc"
tooltip_name = "Test slide"
[node name="Label" type="Label" parent="Hotspots/button_slide"]
margin_left = -3.6864
margin_top = -38.4435
margin_right = 71.3136
margin_bottom = -7.44354
text = "Test Slide"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ESCLocation" type="Position2D" parent="Hotspots/button_slide"]
position = Vector2( 4.21295, 214.863 )
script = ExtResource( 5 )
global_id = "slide_location"
[node name="button_turn_to" parent="Hotspots" instance=ExtResource( 8 )]
position = Vector2( 1041.66, 152.721 )
global_id = "button_turn_to"
esc_script = "res://game/rooms/room10/esc/button_turn_to.esc"
tooltip_name = "Test turn_to"
[node name="Label" type="Label" parent="Hotspots/button_turn_to"]
margin_left = -3.6864
margin_top = -38.4435
margin_right = 71.3136
margin_bottom = -7.44354
text = "Test turn_to"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ESCLocation" type="Position2D" parent="Hotspots/button_turn_to"]
position = Vector2( 4.21295, 214.863 )
script = ExtResource( 5 )
global_id = "slide_location"
[node name="slide_pos_1" type="Position2D" parent="."]
position = Vector2( 469.097, 65.8522 )
script = ExtResource( 5 )
global_id = "slide_pos_1"
[node name="slide_pos_2" type="Position2D" parent="."]
position = Vector2( 958.33, 638.293 )
script = ExtResource( 5 )
global_id = "slide_pos_2"
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 542.824, 468.193 )
script = ExtResource( 5 )
global_id = "player_start"