This is done even if there is no ESC script attached to the room. First default position will then be the start ESCLocation if there is one. Else, fallback to origin (0,0).
26 lines
837 B
Plaintext
26 lines
837 B
Plaintext
[gd_scene load_steps=3 format=2]
|
|
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_item.gd" type="Script" id=1]
|
|
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=2]
|
|
|
|
[node name="r_door" type="Area2D"]
|
|
pause_mode = 1
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_editor_description_": ""
|
|
}
|
|
global_id = "r1_r_exit"
|
|
esc_script = "res://game/rooms/room01/esc/right_exit.esc"
|
|
is_exit = true
|
|
tooltip_name = "Exit"
|
|
default_action = "walk"
|
|
dialog_color = Color( 1, 1, 1, 1 )
|
|
animations = null
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
|
|
|
|
[node name="Position2D" type="Position2D" parent="."]
|
|
position = Vector2( 1225.47, 353.99 )
|
|
script = ExtResource( 2 )
|