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=8 format=2]
[gd_scene load_steps=9 format=2]
[ext_resource path="res://game/rooms/room02/walkable_area.tscn" type="PackedScene" id=1]
[ext_resource path="res://game/rooms/room02/background.tscn" type="PackedScene" id=2]
@@ -7,6 +7,7 @@
[ext_resource path="res://game/rooms/room02/button/button.tscn" type="PackedScene" 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]
[node name="room2" type="Node2D"]
script = ExtResource( 6 )
@@ -45,6 +46,7 @@ polygon = PoolVector2Array( 870.974, 538.342, 827.536, 353.995, 1181.4, 357.174,
[node name="action_pos" type="Position2D" parent="Hotspots/r_platform"]
position = Vector2( 430.893, 451.052 )
script = ExtResource( 8 )
[node name="r_door" type="Area2D" parent="Hotspots"]
script = ExtResource( 7 )
@@ -60,6 +62,7 @@ polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953,
[node name="Position2D" type="Position2D" parent="Hotspots/r_door"]
position = Vector2( 1225.47, 353.99 )
script = ExtResource( 8 )
[node name="l_door" type="Area2D" parent="Hotspots"]
script = ExtResource( 7 )
@@ -75,6 +78,7 @@ polygon = PoolVector2Array( -1.37926, 443.158, 7.96461, 122.796, 84.0504, 77.411
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
position = Vector2( 52.1462, 384.691 )
script = ExtResource( 8 )
[node name="button_right" parent="Hotspots" instance=ExtResource( 5 )]
position = Vector2( 958.107, 176.401 )
@@ -84,6 +88,7 @@ dialog_color = Color( 0, 1, 0.109804, 1 )
[node name="Position2D" type="Position2D" parent="Hotspots/button_right"]
position = Vector2( 29.4302, 195.411 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
@@ -96,9 +101,12 @@ dialog_color = Color( 0, 1, 0.109804, 1 )
[node name="Position2D" type="Position2D" parent="Hotspots/button_left"]
position = Vector2( 24.6681, 196.998 )
script = ExtResource( 8 )
__meta__ = {
"_editor_description_": ""
}
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 76.7617, 437.649 )
script = ExtResource( 8 )
global_id = "r2_player_start"