Removed hardcoded global_id "player" (#359)

* Removed hardcoded global_id "player"
Removed hardcoded node name "start_position"

* docs: Automatic update of API docs

Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
Julian Murgia
2021-08-08 12:10:46 +02:00
committed by GitHub
parent c711db5d3c
commit cbb64df969
19 changed files with 111 additions and 24 deletions

View File

@@ -71,6 +71,8 @@ __meta__ = {
[node name="player_start" type="Position2D" parent="."]
position = Vector2( 82.9282, 347.615 )
script = ExtResource( 9 )
global_id = "r4_player_start"
is_start_location = true
[node name="Hotspots" type="Node2D" parent="."]
@@ -80,6 +82,7 @@ global_id = "l_exit"
esc_script = "res://game/rooms/room04/esc/left_exit.esc"
is_exit = true
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
polygon = PoolVector2Array( 29.1046, 292.156, 31.0151, 76.8949, 147.177, 74.4792, 151.415, 293.788 )
@@ -94,6 +97,7 @@ global_id = "r_exit"
esc_script = "res://game/rooms/room04/esc/right_exit.esc"
is_exit = true
dialog_color = Color( 1, 1, 1, 1 )
animations = null
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
polygon = PoolVector2Array( 1567.92, 294.848, 1573.21, 92.4902, 1657.34, 129.485, 1654.79, 343.583 )