Issue 320 (#396) - Mobile fixes

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-09-23 08:32:08 +02:00
committed by GitHub
parent bb93dc1ef3
commit 60ea4d851b
82 changed files with 897 additions and 427 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
game/appicons/appstore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

BIN
game/appicons/playstore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -23,5 +23,5 @@ __meta__ = {
}
[node name="ESCLocation" type="Position2D" parent="."]
position = Vector2( 0, 236.267 )
position = Vector2( 0, 236.681 )
script = ExtResource( 2 )

View File

@@ -46,7 +46,7 @@ __meta__ = {
[node name="walkable_area" parent="." instance=ExtResource( 1 )]
position = Vector2( 3.5636, 0 )
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="r_door" parent="Hotspots" instance=ExtResource( 8 )]
position = Vector2( 1225.9, 217.966 )
@@ -73,7 +73,7 @@ __meta__ = {
}
[node name="item2" parent="Hotspots" instance=ExtResource( 9 )]
position = Vector2( 839.614, 146.832 )
position = Vector2( 839.614, 147.455 )
global_id = "r1_wall_item2"
esc_script = "res://game/rooms/room01/esc/wall_item_popupdialog.esc"
@@ -112,3 +112,5 @@ position = Vector2( 660.468, 381.489 )
script = ExtResource( 7 )
global_id = "r1_destination_point3"
player_orients_on_arrival = false
[editable path="Hotspots/item"]

View File

@@ -30,9 +30,8 @@ __meta__ = {
"_edit_use_anchors_": false
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="r_platform" type="Area2D" parent="Hotspots"]
[node name="r_platform" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 7 )
global_id = "r2_right_platform"
esc_script = "res://game/rooms/room02/esc/right_platform.esc"
@@ -42,14 +41,15 @@ default_action = "look"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_platform"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="r_platform"]
polygon = PoolVector2Array( 870.974, 538.342, 827.536, 353.995, 1181.4, 357.174, 1287.34, 413.325, 1289.46, 545.758 )
[node name="action_pos" type="Position2D" parent="Hotspots/r_platform"]
[node name="action_pos" type="Position2D" parent="r_platform"]
position = Vector2( 430.893, 451.052 )
script = ExtResource( 8 )
[node name="r_door" type="Area2D" parent="Hotspots"]
[node name="r_door" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 7 )
global_id = "r2_r_exit"
esc_script = "res://game/rooms/room02/esc/right_exit.esc"
@@ -59,14 +59,15 @@ default_action = "walk"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="r_door"]
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
[node name="Position2D" type="Position2D" parent="Hotspots/r_door"]
[node name="Position2D" type="Position2D" parent="r_door"]
position = Vector2( 1225.47, 353.99 )
script = ExtResource( 8 )
[node name="l_door" type="Area2D" parent="Hotspots"]
[node name="l_door" type="Area2D" parent="."]
pause_mode = 1
script = ExtResource( 7 )
global_id = "r2_l_exit"
esc_script = "res://game/rooms/room02/esc/left_exit.esc"
@@ -76,35 +77,35 @@ default_action = "walk"
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="l_door"]
polygon = PoolVector2Array( -1.37926, 443.158, 7.96461, 122.796, 84.0504, 77.4118, 88.055, 377.751 )
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
[node name="Position2D" type="Position2D" parent="l_door"]
position = Vector2( 52.1462, 384.691 )
script = ExtResource( 8 )
[node name="button_right" parent="Hotspots" instance=ExtResource( 5 )]
[node name="button_right" parent="." instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 958.107, 176.401 )
global_id = "r2_button_right"
esc_script = "res://game/rooms/room02/esc/button.esc"
dialog_color = Color( 0, 1, 0.109804, 1 )
animations = null
[node name="Position2D" type="Position2D" parent="Hotspots/button_right"]
[node name="Position2D" type="Position2D" parent="button_right"]
position = Vector2( 29.4302, 195.411 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
[node name="button_left" parent="Hotspots" instance=ExtResource( 5 )]
[node name="button_left" parent="." instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 288.82, 171.439 )
global_id = "r2_button"
esc_script = "res://game/rooms/room02/esc/button.esc"
dialog_color = Color( 0, 1, 0.109804, 1 )
animations = null
[node name="Position2D" type="Position2D" parent="Hotspots/button_left"]
[node name="Position2D" type="Position2D" parent="button_left"]
position = Vector2( 24.6681, 196.998 )
script = ExtResource( 8 )
__meta__ = {

View File

@@ -32,6 +32,7 @@ __meta__ = {
[node name="Hotspots" type="Node2D" parent="."]
[node name="r_platform" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
__meta__ = {
"_editor_description_": ""
@@ -55,6 +56,7 @@ __meta__ = {
}
[node name="r_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
__meta__ = {
"_editor_description_": ""
@@ -74,6 +76,7 @@ position = Vector2( 1225.47, 353.99 )
script = ExtResource( 8 )
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
__meta__ = {
"_editor_description_": ""
@@ -93,6 +96,7 @@ position = Vector2( 44.1375, 384.691 )
script = ExtResource( 8 )
[node name="button" parent="Hotspots" instance=ExtResource( 7 )]
pause_mode = 1
global_id = "r3_button"
esc_script = "res://game/rooms/room03/esc/button.esc"
animations = null

View File

@@ -74,9 +74,10 @@ script = ExtResource( 9 )
global_id = "r4_player_start"
is_start_location = true
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
global_id = "l_exit"
esc_script = "res://game/rooms/room04/esc/left_exit.esc"
@@ -92,6 +93,7 @@ position = Vector2( 83.6298, 279.703 )
script = ExtResource( 9 )
[node name="r_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
global_id = "r_exit"
esc_script = "res://game/rooms/room04/esc/right_exit.esc"

View File

@@ -86,9 +86,10 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 7 )
global_id = "r5_l_exit"
esc_script = "res://game/rooms/room05/esc/left_exit.esc"
@@ -105,6 +106,7 @@ position = Vector2( 37.4521, 392.045 )
script = ExtResource( 11 )
[node name="r_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( -1, 0 )
script = ExtResource( 7 )
global_id = "r5_r_exit"
@@ -122,6 +124,7 @@ position = Vector2( 1225.47, 353.99 )
script = ExtResource( 11 )
[node name="item_wall" parent="Hotspots" instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 2.37842, -254.49 )
global_id = "r5_wall_item"
esc_script = "res://game/rooms/room05/esc/wall_item.esc"
@@ -137,6 +140,7 @@ __meta__ = {
}
[node name="wrench" parent="Hotspots" instance=ExtResource( 8 )]
pause_mode = 1
position = Vector2( 257.269, 435.892 )
interaction_direction = 2
animations = null
@@ -146,10 +150,12 @@ position = Vector2( -77.4207, 0 )
script = ExtResource( 11 )
[node name="pen" parent="Hotspots" instance=ExtResource( 10 )]
pause_mode = 1
position = Vector2( 909.908, 443.451 )
animations = null
[node name="empty_sheet" parent="Hotspots" instance=ExtResource( 9 )]
pause_mode = 1
position = Vector2( 1059.84, 440.932 )
animations = null

View File

@@ -55,9 +55,10 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_exit" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
esc_script = "res://game/rooms/room06/esc/left_exit.esc"
animations = null
@@ -69,6 +70,7 @@ __meta__ = {
}
[node name="r_door" parent="Hotspots" instance=ExtResource( 5 )]
pause_mode = 1
esc_script = "res://game/rooms/room06/esc/r6_door.esc"
animations = null
@@ -80,6 +82,7 @@ __meta__ = {
}
[node name="worker" parent="Hotspots" instance=ExtResource( 7 )]
pause_mode = 1
position = Vector2( 480, 430 )
esc_script = "res://game/rooms/room06/esc/worker.esc"
interaction_direction = 2

View File

@@ -131,9 +131,10 @@ position = Vector2( 0, 1403.26 )
navpoly = SubResource( 2 )
enabled = false
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_exit" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 0, 1409.59 )
script = ExtResource( 7 )
__meta__ = {
@@ -154,6 +155,7 @@ position = Vector2( 37.4521, 392.045 )
script = ExtResource( 8 )
[node name="r_exit" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 0, 1409.59 )
script = ExtResource( 7 )
__meta__ = {
@@ -178,6 +180,7 @@ __meta__ = {
}
[node name="object_1" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 358.099, -1195.07 )
script = ExtResource( 7 )
global_id = "r7_object_1"
@@ -193,6 +196,7 @@ position = Vector2( 460.841, 1515.95 )
shape = SubResource( 3 )
[node name="object2" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 1770.63, 1358.99 )
script = ExtResource( 7 )
__meta__ = {
@@ -209,6 +213,7 @@ polygon = PoolVector2Array( -112.101, 14.6226, -103.122, 288.503, 130.35, 286.25
points = PoolVector2Array( -74.0056, 70.7457, 2.32182, 28.0921, 89.8739, 77.4804, -82.9853, 268.299, 110.078, 261.564 )
[node name="lower_stairs" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 0, 1409.59 )
script = ExtResource( 7 )
__meta__ = {
@@ -228,6 +233,7 @@ position = Vector2( 953.985, 315.526 )
script = ExtResource( 8 )
[node name="upper_stairs" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 1347.64, 473.026 )
script = ExtResource( 7 )
global_id = "r7_upper_stairs"
@@ -246,6 +252,7 @@ position = Vector2( 27.5337, 131.767 )
script = ExtResource( 8 )
[node name="button_camera_push" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
position = Vector2( -167.43, 1463.23 )
global_id = "r7_button_push"
esc_script = "res://game/rooms/room07/esc/button_push.esc"
@@ -270,6 +277,7 @@ __meta__ = {
}
[node name="button_camera_shift" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
position = Vector2( 9.393, 1464.03 )
global_id = "r7_button_shift"
esc_script = "res://game/rooms/room07/esc/button_shift.esc"
@@ -291,6 +299,7 @@ __meta__ = {
}
[node name="button_camera_follow" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
position = Vector2( 172.527, 1464.03 )
global_id = "r7_button_follow"
esc_script = "res://game/rooms/room07/esc/button_follow.esc"
@@ -312,6 +321,7 @@ __meta__ = {
}
[node name="button_camera_zoom" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
position = Vector2( 332.527, 1464.03 )
global_id = "r7_button_zoom"
esc_script = "res://game/rooms/room07/esc/button_zoom.esc"
@@ -333,6 +343,7 @@ __meta__ = {
}
[node name="button_camera_set_pos" parent="Hotspots" instance=ExtResource( 3 )]
pause_mode = 1
position = Vector2( 910.482, 1464.03 )
global_id = "r7_button_set_pos"
esc_script = "res://game/rooms/room07/esc/button_set_pos.esc"
@@ -354,6 +365,7 @@ __meta__ = {
}
[node name="trigger_left" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 406, 0 )
script = ExtResource( 7 )
global_id = "trigger_left"
@@ -384,6 +396,7 @@ points = PoolVector2Array( 718.237, 1756.04, 724.544, 1950.34, 815.761, 1947.51,
width = 2.0
[node name="trigger_right" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 220, 0 )
script = ExtResource( 7 )
global_id = "trigger_right"
@@ -415,6 +428,7 @@ points = PoolVector2Array( 1089.37, 1757.17, 1097.85, 1949.99, 1187.37, 1947.87,
width = 2.0
[node name="light_left" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 412, 0 )
script = ExtResource( 7 )
global_id = "r7_light_left"
@@ -435,6 +449,7 @@ anims/green = SubResource( 5 )
anims/red = SubResource( 6 )
[node name="light_right" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( 613.333, -1.13 )
script = ExtResource( 7 )
global_id = "r7_light_right"

View File

@@ -124,9 +124,10 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
__meta__ = {
"_editor_description_": ""
@@ -146,6 +147,7 @@ position = Vector2( 45.47, 383.99 )
script = ExtResource( 7 )
[node name="m_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
__meta__ = {
"_editor_description_": ""
@@ -173,6 +175,7 @@ anims/door_close = SubResource( 2 )
anims/door_open = SubResource( 3 )
[node name="r8_mini_puzzle_button" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 5 )
global_id = "r8_button_puzzle"
esc_script = "res://game/rooms/room08/esc/button_puzzle.esc"
@@ -206,6 +209,7 @@ __meta__ = {
}
[node name="r8_reset_puzzle_button" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( -139.185, 0 )
script = ExtResource( 5 )
global_id = "r8_button_reset_puzzle"

View File

@@ -64,9 +64,10 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1
script = ExtResource( 7 )
global_id = "r9_l_exit"
esc_script = "res://game/rooms/room09/esc/left_exit.esc"
@@ -84,6 +85,7 @@ position = Vector2( 37.4521, 392.045 )
script = ExtResource( 12 )
[node name="r_door" parent="Hotspots" instance=ExtResource( 9 )]
pause_mode = 1
global_id = "r9_r_exit"
esc_script = "res://game/rooms/room09/esc/right_exit.esc"
animations = null
@@ -93,6 +95,7 @@ position = Vector2( 1198.65, 391.058 )
script = ExtResource( 12 )
[node name="r9_closet_left" parent="Hotspots" instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 435.233, 64.1518 )
global_id = "r9_closet_left"
esc_script = "res://game/rooms/room09/esc/closet_left.esc"
@@ -109,13 +112,13 @@ position = Vector2( 46.4878, 47.8335 )
scale = Vector2( 0.5, 0.5 )
global_id = "r9_bottle_left"
dont_apply_terrain_scaling = true
animations = null
[node name="Position2D" type="Position2D" parent="Hotspots/r9_closet_left/bottle_left"]
position = Vector2( -26.727, 543.448 )
script = ExtResource( 12 )
[node name="r9_closet_middle" parent="Hotspots" instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 572.963, 65.2113 )
global_id = "r9_closet_middle"
esc_script = "res://game/rooms/room09/esc/closet_middle.esc"
@@ -132,13 +135,13 @@ position = Vector2( 45.9562, 46.774 )
scale = Vector2( 0.5, 0.5 )
global_id = "r9_bottle_middle"
dont_apply_terrain_scaling = true
animations = null
[node name="Position2D" type="Position2D" parent="Hotspots/r9_closet_middle/bottle_middle"]
position = Vector2( -26.727, 543.448 )
script = ExtResource( 12 )
[node name="r9_closet_right" parent="Hotspots" instance=ExtResource( 5 )]
pause_mode = 1
position = Vector2( 710.693, 66.2707 )
global_id = "r9_closet_right"
esc_script = "res://game/rooms/room09/esc/closet_right.esc"
@@ -155,13 +158,13 @@ position = Vector2( 47.2065, 45.7146 )
scale = Vector2( 0.5, 0.5 )
global_id = "r9_bottle_right"
dont_apply_terrain_scaling = true
animations = null
[node name="Position2D" type="Position2D" parent="Hotspots/r9_closet_right/bottle_right"]
position = Vector2( -26.727, 543.448 )
script = ExtResource( 12 )
[node name="button" parent="Hotspots" instance=ExtResource( 8 )]
pause_mode = 1
position = Vector2( 240.688, 160.459 )
global_id = "r9_button_reset"
esc_script = "res://game/rooms/room09/esc/button_reset.esc"
@@ -183,6 +186,7 @@ __meta__ = {
}
[node name="stand" type="Area2D" parent="Hotspots"]
pause_mode = 1
position = Vector2( -125.617, 0.8909 )
script = ExtResource( 7 )
global_id = "r9_stand"

View File

@@ -1,3 +1,3 @@
:exit_scene
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
set_sound_state _sound res://game/sfx/sounds/doorOpen_2.ogg false
change_scene "res://game/rooms/room11/room11.tscn"

View File

@@ -46,7 +46,7 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
:setup
set_state bg_music off false
set_state _music off false
> [eq ESC_LAST_SCENE room10]
teleport player r11_l_exit

View File

@@ -48,7 +48,7 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1

View File

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

View File

@@ -46,7 +46,7 @@ __meta__ = {
"_editor_description_": ""
}
[node name="Hotspots" type="Node2D" parent="."]
[node name="Hotspots" type="Node" parent="."]
[node name="l_door" type="Area2D" parent="Hotspots"]
pause_mode = 1

View File

@@ -7,8 +7,11 @@ func _ready():
var rooms_folder = "res://game/rooms/"
var dir = Directory.new()
var rooms_list: Array = []
if dir.open(rooms_folder) == OK:
var path = ProjectSettings.globalize_path(rooms_folder)
if not OS.has_feature("editor"):
path = OS.get_executable_path().get_base_dir().plus_file(path)
var tmp = dir.open(path)
if tmp == OK:
dir.list_dir_begin(true)
var file_name = dir.get_next()
while file_name != "":
@@ -23,7 +26,7 @@ func _ready():
room + ".tscn")
else:
escoria.logger.report_errors("room_select.gd:_ready()",
escoria.logger.report_warnings("room_select.gd:_ready()",
["A problem occurred while opening rooms folder."])

View File

@@ -12,6 +12,7 @@ __meta__ = {
[node name="option" type="OptionButton" parent="."]
margin_right = 29.0
margin_bottom = 40.0
size_flags_horizontal = 3
script = ExtResource( 1 )
[node name="button" type="Button" parent="."]