Added a new character and modified the way :setup and :ready events are run.

This commit is contained in:
Julian Murgia
2020-12-26 21:53:00 +01:00
parent f26d96f115
commit af8a9ea086
58 changed files with 1259 additions and 340 deletions

View File

@@ -6,7 +6,7 @@
[ext_resource path="res://game/characters/guybrush/guybrush.tscn" type="PackedScene" id=4]
[ext_resource path="res://addons/escoria-core/game/core-scripts/escitem.gd" type="Script" id=5]
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
[ext_resource path="res://game/characters/character/character.tscn" type="PackedScene" id=7]
[ext_resource path="res://game/characters/character/android.tscn" type="PackedScene" id=7]
[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 )
@@ -170,15 +170,15 @@ position = Vector2( 1180.52, 395.193 )
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door/Area2D"]
polygon = PoolVector2Array( 1169.35, 41.7644, 1168.09, 347.925, 1275.18, 407.141, 1278.96, 88.3814 )
[node name="character" parent="Hotspots" instance=ExtResource( 7 )]
[node name="android" parent="Hotspots" instance=ExtResource( 7 )]
position = Vector2( 373.401, 415.66 )
scale = Vector2( -1, 1 )
esc_script = "res://game/rooms/room6/esc/character.esc"
esc_script = "res://game/rooms/room6/esc/android.esc"
interact_positions = {
"default": Vector2( 595.637, 438.337 )
"default": Vector2( 151.165, 438.337 )
}
[node name="Position2D" type="Position2D" parent="Hotspots/character"]
[node name="Position2D" type="Position2D" parent="Hotspots/android"]
position = Vector2( 222.236, 22.6772 )
[node name="player_start" type="Position2D" parent="."]