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=12 format=2]
[gd_scene load_steps=13 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/room05/background.tscn" type="PackedScene" id=2]
@@ -10,6 +10,7 @@
[ext_resource path="res://game/items/escitems/r5_wrench.tscn" type="PackedScene" id=8]
[ext_resource path="res://game/items/escitems/r5_empty_sheet.tscn" type="PackedScene" id=9]
[ext_resource path="res://game/items/escitems/r5_pen.tscn" type="PackedScene" id=10]
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=11]
[sub_resource type="NavigationPolygon" id=1]
vertices = PoolVector2Array( 1168.92, 640.557, 1182.53, 588.863, 1269.59, 622.872, 1275.03, 799.721, 129.634, 615.792, 1143.08, 613.35, -9.16094, 803.802, 84.5821, 654.06, -6.44019, 711.297, 3.15687, 646.051, 59.2201, 628.698 )
@@ -100,6 +101,7 @@ polygon = PoolVector2Array( 0.328762, 440.897, 1.85199, 119.926, 85.9517, 74.621
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
position = Vector2( 37.4521, 392.045 )
script = ExtResource( 11 )
[node name="r_door" type="Area2D" parent="Hotspots"]
position = Vector2( -1, 0 )
@@ -115,6 +117,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( 11 )
[node name="item_wall" parent="Hotspots" instance=ExtResource( 5 )]
position = Vector2( 2.37842, -254.49 )
@@ -123,8 +126,9 @@ esc_script = "res://game/rooms/room05/esc/wall_item.esc"
tooltip_name = "Item on the wall"
default_action = "look"
[node name="Position2D2" type="Position2D" parent="Hotspots/item_wall"]
[node name="Position2D" type="Position2D" parent="Hotspots/item_wall"]
position = Vector2( 620.135, 613.652 )
script = ExtResource( 11 )
__meta__ = {
"_editor_description_": ""
}
@@ -135,13 +139,14 @@ interaction_direction = 2
[node name="Position2D" type="Position2D" parent="Hotspots/wrench"]
position = Vector2( -77.4207, 0 )
script = ExtResource( 11 )
[node name="pen" parent="Hotspots" instance=ExtResource( 10 )]
position = Vector2( 909.908, 443.451 )
[node name="empty_sheet" parent="Hotspots" instance=ExtResource( 9 )]
position = Vector2( 1059.84, 440.932 )
dialog_color = Color( 1, 1, 1, 1 )
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 76.7617, 437.649 )
script = ExtResource( 11 )