Added a new fourth button in room14 to demonstrate this. Renamed BYPASS_LAST_SCENE to FORCE_LAST_SCENE_NULL to make it a bit clearer. Made events "finished" and "interrupted" signals connections as ONESHOT (so they are disconnected once the signal was received). Also removed some unused files, many others remain. And fixed some bugs here and there.
184 lines
6.3 KiB
Plaintext
184 lines
6.3 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=1]
|
|
[ext_resource path="res://game/rooms/room14/background.tscn" type="PackedScene" id=2]
|
|
[ext_resource path="res://game/fonts/caslonantique.tres" type="DynamicFont" id=3]
|
|
[ext_resource path="res://game/characters/mark/mark.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=5]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=6]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_item.gd" type="Script" id=7]
|
|
[ext_resource path="res://game/rooms/room14/r_door.tscn" type="PackedScene" id=8]
|
|
[ext_resource path="res://game/items/escitems/button.tscn" type="PackedScene" id=9]
|
|
[ext_resource path="res://game/characters/worker/worker.tscn" type="PackedScene" id=10]
|
|
|
|
[sub_resource type="NavigationPolygon" id=1]
|
|
vertices = PoolVector2Array( 1168.92, 640.557, 1182.53, 588.863, 1269.59, 622.872, 1275.03, 799.721, 864.626, 613.518, 1143.08, 613.35, -9.16094, 803.802, 386.666, 618.012, 129.634, 615.792, 84.5821, 654.06, -6.44019, 711.297, 3.15687, 646.051, 59.2201, 628.698 )
|
|
polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 0, 3, 6, 7 ), PoolIntArray( 8, 7, 6, 9 ), PoolIntArray( 9, 6, 10, 11, 12 ) ]
|
|
outlines = [ PoolVector2Array( -6.44019, 711.297, 3.15687, 646.051, 59.2201, 628.698, 84.5821, 654.06, 129.634, 615.792, 386.666, 618.012, 864.626, 613.518, 1143.08, 613.35, 1168.92, 640.557, 1182.53, 588.863, 1269.59, 622.872, 1275.03, 799.721, -9.16094, 803.802 ) ]
|
|
|
|
[node name="room14" type="Node2D"]
|
|
script = ExtResource( 6 )
|
|
__meta__ = {
|
|
"_edit_vertical_guides_": [ ]
|
|
}
|
|
global_id = "room14"
|
|
esc_script = "res://game/rooms/room14/esc/room14.esc"
|
|
player_scene = ExtResource( 4 )
|
|
camera_limits = [ Rect2( 0, 0, 1289, 555 ) ]
|
|
|
|
[node name="background" parent="." instance=ExtResource( 2 )]
|
|
|
|
[node name="room_label" type="Label" parent="background"]
|
|
margin_right = 92.0
|
|
margin_bottom = 21.0
|
|
custom_fonts/font = ExtResource( 3 )
|
|
text = "ROOM 14"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="walkable_area" type="Navigation2D" parent="."]
|
|
script = ExtResource( 1 )
|
|
|
|
[node name="platform" type="NavigationPolygonInstance" parent="walkable_area"]
|
|
position = Vector2( 6.73163, -264.779 )
|
|
navpoly = SubResource( 1 )
|
|
__meta__ = {
|
|
"_editor_description_": ""
|
|
}
|
|
|
|
[node name="Hotspots" type="Node" parent="."]
|
|
|
|
[node name="l_door" type="Area2D" parent="Hotspots"]
|
|
pause_mode = 1
|
|
script = ExtResource( 7 )
|
|
global_id = "r14_l_exit"
|
|
esc_script = "res://game/rooms/room14/esc/left_exit.esc"
|
|
is_exit = true
|
|
tooltip_name = "Left exit"
|
|
default_action = "walk"
|
|
dialog_color = Color( 1, 1, 1, 1 )
|
|
animations = null
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
|
|
polygon = PoolVector2Array( 0.328762, 440.897, 1.85199, 119.926, 85.9517, 74.6212, 87.1409, 377.869 )
|
|
|
|
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
|
|
position = Vector2( 37.4521, 392.045 )
|
|
script = ExtResource( 5 )
|
|
global_id = "r12_l_exit"
|
|
|
|
[node name="r_door" parent="Hotspots" instance=ExtResource( 8 )]
|
|
global_id = "r14_r_exit"
|
|
esc_script = "res://game/rooms/room14/esc/right_exit.esc"
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="Hotspots/r_door"]
|
|
position = Vector2( 1231.78, 360.624 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="start" type="Position2D" parent="Hotspots"]
|
|
position = Vector2( 243.677, 455.569 )
|
|
script = ExtResource( 5 )
|
|
global_id = "start"
|
|
is_start_location = true
|
|
interaction_direction = 180
|
|
|
|
[node name="show_main_menu" parent="." instance=ExtResource( 9 )]
|
|
global_id = "button_main_menu"
|
|
esc_script = "res://game/rooms/room14/esc/button_main_menu.esc"
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="show_main_menu"]
|
|
position = Vector2( 343.887, 381.305 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="Label" type="Label" parent="show_main_menu"]
|
|
margin_left = 285.569
|
|
margin_top = 194.216
|
|
margin_right = 408.569
|
|
margin_bottom = 259.216
|
|
text = "Show main menu
|
|
with autmatic
|
|
transitions enabled
|
|
"
|
|
align = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="show_pause_menu" parent="." instance=ExtResource( 9 )]
|
|
position = Vector2( 233.415, 0 )
|
|
global_id = "button_pause_menu"
|
|
esc_script = "res://game/rooms/room14/esc/button_pause_menu.esc"
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="show_pause_menu"]
|
|
position = Vector2( 343.887, 381.305 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="Label" type="Label" parent="show_pause_menu"]
|
|
margin_left = 273.915
|
|
margin_top = 194.216
|
|
margin_right = 413.915
|
|
margin_bottom = 242.216
|
|
text = "Show pause menu
|
|
with NO transition
|
|
(manual or automatic)"
|
|
align = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="show_pause_change_scene_manual" parent="." instance=ExtResource( 9 )]
|
|
position = Vector2( 463.318, 0 )
|
|
global_id = "button_main_change_scene"
|
|
esc_script = "res://game/rooms/room14/esc/button_main_menu_change_scene.esc"
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="show_pause_change_scene_manual"]
|
|
position = Vector2( 343.887, 381.305 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="Label" type="Label" parent="show_pause_change_scene_manual"]
|
|
margin_left = 277.027
|
|
margin_top = 194.0
|
|
margin_right = 428.027
|
|
margin_bottom = 259.0
|
|
text = "Show pause menu with
|
|
manual transition
|
|
and change_scene with
|
|
manual transition"
|
|
align = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="show_pause_change_scene_auto" parent="." instance=ExtResource( 9 )]
|
|
position = Vector2( 676.318, 0 )
|
|
global_id = "button_pause_change_scene_auto"
|
|
esc_script = "res://game/rooms/room14/esc/button_main_menu_change_scene_auto.esc"
|
|
|
|
[node name="ESCLocation" type="Position2D" parent="show_pause_change_scene_auto"]
|
|
position = Vector2( 343.887, 381.305 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="Label" type="Label" parent="show_pause_change_scene_auto"]
|
|
margin_left = 277.027
|
|
margin_top = 194.0
|
|
margin_right = 428.027
|
|
margin_bottom = 259.0
|
|
text = "Show pause menu with
|
|
manual transition
|
|
and change_scene with
|
|
automatic transition"
|
|
align = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="worker" parent="." instance=ExtResource( 10 )]
|
|
position = Vector2( 204.268, 376.233 )
|
|
esc_script = "res://game/rooms/room14/esc/worker.esc"
|
|
|
|
[node name="worker_target" type="Position2D" parent="."]
|
|
position = Vector2( 917.51, 475.808 )
|
|
script = ExtResource( 5 )
|
|
global_id = "worker_target"
|