Add ESCLocation node (#323)

Fixes #306
This commit is contained in:
Julian Murgia
2021-07-15 09:42:22 +02:00
committed by GitHub
parent 958c8b441b
commit 43dc217359
15 changed files with 142 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=16 format=2]
[gd_scene load_steps=17 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/room07/background.tscn" type="PackedScene" id=2]
@@ -7,6 +7,7 @@
[ext_resource path="res://game/ui/commons/fonts/caslonantique.tres" type="DynamicFont" 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://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=8]
[sub_resource type="NavigationPolygon" id=1]
vertices = PoolVector2Array( 1976.63, 640.557, 1987.95, 588.863, 2070.07, 622.872, 2066.3, 799.721, 1015.72, 626.818, 1956.81, 616.096, -9.16094, 803.802, -6.44019, 711.297, 911.239, 554.152, 991.239, 554.152, 858.566, 628.405, 741.099, 620.468, 84.5821, 654.06, 3.15687, 646.051, 59.2201, 628.698, 129.634, 615.792 )
@@ -149,6 +150,7 @@ polygon = PoolVector2Array( 0.328762, 440.897, 1.85199, 119.926, 85.9517, 74.621
[node name="Position2D" type="Position2D" parent="Hotspots/l_exit"]
position = Vector2( 37.4521, 392.045 )
script = ExtResource( 8 )
[node name="r_exit" type="Area2D" parent="Hotspots"]
position = Vector2( 0, 1409.59 )
@@ -168,6 +170,7 @@ polygon = PoolVector2Array( 1982.34, 349.116, 1980.1, 46.0513, 2081.12, 86.4599,
[node name="Position2D" type="Position2D" parent="Hotspots/r_exit"]
position = Vector2( 2038.8, 347.193 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
@@ -217,6 +220,7 @@ polygon = PoolVector2Array( 831.375, 344.577, 829.788, 19.1602, 1058.37, 19.1602
[node name="Position2D" type="Position2D" parent="Hotspots/lower_stairs"]
position = Vector2( 953.985, 315.526 )
script = ExtResource( 8 )
[node name="upper_stairs" type="Area2D" parent="Hotspots"]
position = Vector2( 1347.64, 473.026 )
@@ -233,6 +237,7 @@ polygon = PoolVector2Array( 1221.86, -804.627, 1220.52, -1158.36, 1450.46, -1134
[node name="Position2D" type="Position2D" parent="Hotspots/upper_stairs"]
position = Vector2( 27.5337, 131.767 )
script = ExtResource( 8 )
[node name="button_camera_push" parent="Hotspots" instance=ExtResource( 3 )]
position = Vector2( -167.43, 1463.23 )
@@ -241,6 +246,7 @@ esc_script = "res://game/rooms/room07/esc/button_push.esc"
[node name="Position2D" type="Position2D" parent="Hotspots/button_camera_push"]
position = Vector2( 343.048, 300.613 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
@@ -263,6 +269,7 @@ esc_script = "res://game/rooms/room07/esc/button_shift.esc"
[node name="Position2D" type="Position2D" parent="Hotspots/button_camera_shift"]
position = Vector2( 350.258, 301.616 )
script = ExtResource( 8 )
[node name="Label" type="Label" parent="Hotspots/button_camera_shift"]
margin_left = 305.626
@@ -282,6 +289,7 @@ esc_script = "res://game/rooms/room07/esc/button_follow.esc"
[node name="Position2D" type="Position2D" parent="Hotspots/button_camera_follow"]
position = Vector2( 350.258, 301.616 )
script = ExtResource( 8 )
[node name="Label" type="Label" parent="Hotspots/button_camera_follow"]
margin_left = 305.626
@@ -301,6 +309,7 @@ esc_script = "res://game/rooms/room07/esc/button_zoom.esc"
[node name="Position2D" type="Position2D" parent="Hotspots/button_camera_zoom"]
position = Vector2( 350.258, 301.616 )
script = ExtResource( 8 )
[node name="Label" type="Label" parent="Hotspots/button_camera_zoom"]
margin_left = 305.626
@@ -320,6 +329,7 @@ esc_script = "res://game/rooms/room07/esc/button_set_pos.esc"
[node name="Position2D" type="Position2D" parent="Hotspots/button_camera_set_pos"]
position = Vector2( 350.258, 301.616 )
script = ExtResource( 8 )
[node name="Label" type="Label" parent="Hotspots/button_camera_set_pos"]
margin_left = 292.919
@@ -431,3 +441,4 @@ anims/red = SubResource( 8 )
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 76.7617, 1847.24 )
script = ExtResource( 8 )