Added a new character and modified the way :setup and :ready events are run.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://game/rooms/room1/walkable_area.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://game/rooms/room1/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=3]
|
||||
[ext_resource path="res://game/characters/guybrush/guybrush.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://game/characters/character2/character.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
|
||||
|
||||
[node name="room1" type="Node2D"]
|
||||
@@ -26,15 +26,6 @@ text = "Move : left click
|
||||
Fast move : double left click"
|
||||
|
||||
[node name="walkable_area" parent="." instance=ExtResource( 1 )]
|
||||
scales = null
|
||||
bitmaps_scale = Vector2( 1, 1 )
|
||||
lightmap = null
|
||||
player_speed_multiplier = 1.0
|
||||
player_doubleclick_speed_multiplier = 1.5
|
||||
lightmap_modulate = Color( 1, 1, 1, 1 )
|
||||
debug_mode = 1
|
||||
scale_min = 0.3
|
||||
scale_max = 1.0
|
||||
|
||||
[node name="Hotspots" type="Node2D" parent="."]
|
||||
|
||||
@@ -45,6 +36,9 @@ is_exit = true
|
||||
esc_script = "res://game/rooms/room1/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 1225.47, 353.99 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
|
||||
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
|
||||
@@ -58,6 +52,9 @@ global_id = "r1_item"
|
||||
esc_script = "res://game/rooms/room1/esc/wall_item.esc"
|
||||
tooltip_name = "Item on the wall"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 671.798, 373.035 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/item"]
|
||||
polygon = PoolVector2Array( 635.586, 253.345, 568.928, 60.1716, 709.047, 120.028, 699.524, 247.903 )
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://game/rooms/room2/walkable_area.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://game/rooms/room2/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=3]
|
||||
[ext_resource path="res://game/characters/guybrush/guybrush.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://game/characters/character2/character.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escitem.gd" type="Script" id=7]
|
||||
|
||||
@@ -17,15 +17,6 @@ esc_script = "res://game/rooms/room2/esc/room2_bridge.esc"
|
||||
player_scene = ExtResource( 4 )
|
||||
|
||||
[node name="walkable_area" parent="." instance=ExtResource( 1 )]
|
||||
scales = null
|
||||
bitmaps_scale = Vector2( 1, 1 )
|
||||
lightmap = null
|
||||
player_speed_multiplier = 1.0
|
||||
player_doubleclick_speed_multiplier = 1.5
|
||||
lightmap_modulate = Color( 1, 1, 1, 1 )
|
||||
debug_mode = 1
|
||||
scale_min = 0.3
|
||||
scale_max = 1.0
|
||||
|
||||
[node name="background" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
@@ -38,6 +29,9 @@ esc_script = "res://game/rooms/room2/esc/right_platform.esc"
|
||||
interaction_direction = 3
|
||||
tooltip_name = "Right platform"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 430.893, 451.052 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_platform"]
|
||||
polygon = PoolVector2Array( 870.974, 538.342, 827.536, 353.995, 1181.4, 357.174, 1287.34, 413.325, 1289.46, 545.758 )
|
||||
@@ -52,6 +46,9 @@ is_exit = true
|
||||
esc_script = "res://game/rooms/room2/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 1225.47, 353.99 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
|
||||
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
|
||||
@@ -66,6 +63,9 @@ is_exit = true
|
||||
esc_script = "res://game/rooms/room2/esc/left_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 52.1462, 384.691 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
|
||||
polygon = PoolVector2Array( -1.37926, 443.158, 7.96461, 122.796, 84.0504, 77.4118, 88.055, 377.751 )
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://game/rooms/room3/walkable_area.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://game/rooms/room3/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=3]
|
||||
[ext_resource path="res://game/characters/guybrush/guybrush.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://game/characters/character2/character.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
|
||||
|
||||
[node name="room3" type="Node2D"]
|
||||
@@ -15,15 +15,6 @@ player_scene = ExtResource( 4 )
|
||||
[node name="background" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="walkable_area" parent="." instance=ExtResource( 1 )]
|
||||
scales = null
|
||||
bitmaps_scale = Vector2( 1, 1 )
|
||||
lightmap = null
|
||||
player_speed_multiplier = 1.0
|
||||
player_doubleclick_speed_multiplier = 1.5
|
||||
lightmap_modulate = Color( 1, 1, 1, 1 )
|
||||
debug_mode = 1
|
||||
scale_min = 0.3
|
||||
scale_max = 1.0
|
||||
|
||||
[node name="Hotspots" type="Node2D" parent="."]
|
||||
|
||||
@@ -36,6 +27,9 @@ global_id = "r3_right_platform"
|
||||
esc_script = "res://game/rooms/room3/esc/right_platform.esc"
|
||||
tooltip_name = "Right platform"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 430.893, 451.052 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_platform"]
|
||||
polygon = PoolVector2Array( 870.974, 538.342, 827.536, 353.995, 1181.4, 357.174, 1287.34, 413.325, 1289.46, 545.758 )
|
||||
@@ -56,6 +50,9 @@ is_exit = true
|
||||
esc_script = "res://game/rooms/room3/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 1225.47, 353.99 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
|
||||
polygon = PoolVector2Array( 1177.94, 348.61, 1175.95, 45.3759, 1276.06, 92.0953, 1277.95, 399.407 )
|
||||
@@ -70,6 +67,9 @@ is_exit = true
|
||||
esc_script = "res://game/rooms/room3/esc/left_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 44.1375, 384.691 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
|
||||
polygon = PoolVector2Array( -2.71457, 437.818, 6.6293, 121.462, 89.3893, 74.7422, 88.0545, 376.416 )
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
[ext_resource path="res://game/rooms/room4/assets/depth_reduced.png" type="Texture" id=8]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id=1]
|
||||
vertices = PoolVector2Array( 1564.36, 574.459, 1576.02, 540.556, 1634.29, 568.102, 1624.42, 800.399, 1536.87, 579.274, 1012.68, 786.929, 1197.79, 675.666, 908.294, 488.354, 996.968, 451.313, 600.739, 456.925, 673.699, 490.599, 371.757, 688.152, 542.371, 788.052, 2.46706, 794.786, 11.4468, 698.255, 189.918, 682.54, 127.06, 573.661, 23.7938, 614.07, 42.8757, 527.64, 125.938, 536.62 )
|
||||
polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 0, 3, 5, 6 ), PoolIntArray( 6, 5, 7, 8 ), PoolIntArray( 9, 8, 7, 10 ), PoolIntArray( 11, 12, 13, 14, 15 ), PoolIntArray( 9, 10, 12, 11 ), PoolIntArray( 16, 15, 14, 17, 18 ), PoolIntArray( 16, 18, 19 ) ]
|
||||
outlines = [ PoolVector2Array( 11.4468, 698.255, 23.7938, 614.07, 42.8757, 527.64, 125.938, 536.62, 127.06, 573.661, 189.918, 682.54, 371.757, 688.152, 600.739, 456.925, 996.968, 451.313, 1197.79, 675.666, 1536.87, 579.274, 1564.36, 574.459, 1576.02, 540.556, 1634.29, 568.102, 1624.42, 800.399, 1012.68, 786.929, 908.294, 488.354, 673.699, 490.599, 542.371, 788.052, 2.46706, 794.786 ) ]
|
||||
vertices = PoolVector2Array( 371.757, 688.152, 542.371, 788.052, 2.46706, 794.786, 11.4468, 698.255, 189.918, 682.54, 1564.36, 574.459, 1578.66, 529.011, 1635.23, 551.638, 1624.42, 800.399, 1536.87, 579.274, 1012.68, 786.929, 1197.79, 675.666, 908.294, 488.354, 996.968, 451.313, 600.739, 456.925, 673.699, 490.599, 127.06, 573.661, 23.7938, 614.07, 42.8757, 527.64, 125.717, 528.797 )
|
||||
polygons = [ PoolIntArray( 0, 1, 2, 3, 4 ), PoolIntArray( 5, 6, 7, 8 ), PoolIntArray( 9, 5, 8, 10, 11 ), PoolIntArray( 11, 10, 12, 13 ), PoolIntArray( 14, 13, 12, 15 ), PoolIntArray( 14, 15, 1, 0 ), PoolIntArray( 16, 4, 3, 17, 18 ), PoolIntArray( 16, 18, 19 ) ]
|
||||
outlines = [ PoolVector2Array( 11.4468, 698.255, 23.7938, 614.07, 42.8757, 527.64, 125.717, 528.797, 127.06, 573.661, 189.918, 682.54, 371.757, 688.152, 600.739, 456.925, 996.968, 451.313, 1197.79, 675.666, 1536.87, 579.274, 1564.36, 574.459, 1578.66, 529.011, 1635.23, 551.638, 1624.42, 800.399, 1012.68, 786.929, 908.294, 488.354, 673.699, 490.599, 542.371, 788.052, 2.46706, 794.786 ) ]
|
||||
|
||||
[node name="room4" type="Node2D"]
|
||||
script = ExtResource( 6 )
|
||||
@@ -20,15 +20,13 @@ esc_script = "res://game/rooms/room4/esc/room4.esc"
|
||||
player_scene = ExtResource( 4 )
|
||||
|
||||
[node name="background" type="TextureRect" parent="."]
|
||||
margin_left = 0.943848
|
||||
margin_right = 2398.94
|
||||
margin_right = 1663.0
|
||||
margin_bottom = 549.0
|
||||
mouse_filter = 2
|
||||
script = ExtResource( 2 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
esc_script = ""
|
||||
|
||||
[node name="Sprite" type="Sprite" parent="background"]
|
||||
scale = Vector2( 0.692794, 0.692794 )
|
||||
@@ -52,14 +50,9 @@ points = PoolVector2Array( 6.10242, 307.886, 2.0979, 129.017, 84.858, 129.017, 8
|
||||
[node name="walkable_area" type="Navigation2D" parent="."]
|
||||
script = ExtResource( 1 )
|
||||
scales = ExtResource( 8 )
|
||||
bitmaps_scale = Vector2( 1, 1 )
|
||||
lightmap = null
|
||||
player_speed_multiplier = 1.0
|
||||
player_doubleclick_speed_multiplier = 1.8
|
||||
lightmap_modulate = Color( 1, 1, 1, 1 )
|
||||
debug_mode = 0
|
||||
scale_min = 0.4
|
||||
scale_max = 1.0
|
||||
|
||||
[node name="platform" type="NavigationPolygonInstance" parent="walkable_area"]
|
||||
visible = false
|
||||
@@ -73,24 +66,6 @@ __meta__ = {
|
||||
position = Vector2( 697.275, 203.998 )
|
||||
|
||||
[node name="Hotspots" type="Node2D" parent="."]
|
||||
position = Vector2( 0.943848, 0 )
|
||||
|
||||
[node name="r_door" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r_exit"
|
||||
is_exit = true
|
||||
esc_script = "res://game/rooms/room4/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 84.5736, 279.703 )
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_door"]
|
||||
polygon = PoolVector2Array( 1567.92, 294.848, 1573.21, 92.4902, 1651.61, 127.452, 1654.79, 343.583 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/r_door"]
|
||||
position = Vector2( 1611.46, 301.017 )
|
||||
|
||||
[node name="l_door" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
@@ -104,7 +79,24 @@ interact_positions = {
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/l_door"]
|
||||
polygon = PoolVector2Array( 26.3979, 288.491, 27.4573, 70.2414, 147.177, 74.4792, 151.415, 293.788 )
|
||||
polygon = PoolVector2Array( 29.1046, 292.156, 31.0151, 76.8949, 147.177, 74.4792, 151.415, 293.788 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
|
||||
position = Vector2( 83.6298, 279.703 )
|
||||
|
||||
[node name="r_door" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r_exit"
|
||||
is_exit = true
|
||||
esc_script = "res://game/rooms/room4/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 1612.4, 301.017 )
|
||||
}
|
||||
|
||||
[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 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/r_door"]
|
||||
position = Vector2( 1611.46, 301.017 )
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escterrain.gd" type="Script" id=1]
|
||||
[ext_resource path="res://game/rooms/room5/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=3]
|
||||
[ext_resource path="res://game/characters/guybrush/guybrush.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://game/characters/character2/character.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escitem.gd" type="Script" id=7]
|
||||
[ext_resource path="res://game/items/escitems/wrench_escitem.tscn" type="PackedScene" id=8]
|
||||
|
||||
@@ -7,32 +7,32 @@ say player "I don't think he'd like that."
|
||||
:talk
|
||||
> [!talked_once]
|
||||
say player "Uhm..."
|
||||
say character "Yeah?"
|
||||
say android "Yeah?"
|
||||
set_global talked_once true
|
||||
|
||||
? option1 1000 option2 true
|
||||
- "What are you doing here?"
|
||||
say player "What are you doing here?"
|
||||
say character "I'm working! Can't you see that?"
|
||||
say character "My colleague is supposed to bring me an important report. And he's not coming!"
|
||||
say android "I'm working! Can't you see that?"
|
||||
say android "My colleague is supposed to bring me an important report. And he's not coming!"
|
||||
?
|
||||
- "I'll bring you this report!"
|
||||
say player "I'll bring you this report!"
|
||||
say character "You will? Great!"
|
||||
say character "Now please hurry up so I can leave and have lunch."
|
||||
say android "You will? Great!"
|
||||
say android "Now please hurry up so I can leave and have lunch."
|
||||
stop
|
||||
- "I've got better things to do."
|
||||
say player "I've got better things to do."
|
||||
say character "Eh! I'm not asking you anythin'!"
|
||||
say android "Eh! I'm not asking you anythin'!"
|
||||
stop
|
||||
|
||||
- "I'm selling these fine leather jackets."
|
||||
say player "I'm selling these fine leather jackets."
|
||||
say character "Go away, kid."
|
||||
say android "Go away, kid."
|
||||
stop
|
||||
|
||||
:give filled_sheet
|
||||
say character "Hey! That's perfect!"
|
||||
say character "I can finally got away from here!"
|
||||
walk character 1200,400
|
||||
set_angle character 45
|
||||
say android "Hey! That's perfect!"
|
||||
say android "I can finally got away from here!"
|
||||
walk android 1200,400
|
||||
set_angle android 45
|
||||
@@ -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="."]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
:setup
|
||||
> [eq ESC_LAST_SCENE room5]
|
||||
teleport player r6_l_exit
|
||||
> [eq ESC_LAST_SCENE room6]
|
||||
teleport player r7_l_exit
|
||||
# Set player look right
|
||||
set_angle player 180
|
||||
stop
|
||||
@@ -9,8 +9,15 @@
|
||||
stop
|
||||
|
||||
:ready
|
||||
#set_global i/r5_pen true
|
||||
#set_active r5_pen false
|
||||
#set_global i/r5_empty_sheet true
|
||||
#set_active r5_empty_sheet false
|
||||
|
||||
camera_push r7_object2 1 LINEAR
|
||||
wait 3
|
||||
camera_push player 1 LINEAR
|
||||
|
||||
#camera_set_drag_margin_enabled bool bool
|
||||
#camera_set_pos real int int
|
||||
#camera_set_target real
|
||||
#camera_set_zoom real
|
||||
#camera_set_zoom_height int
|
||||
#camera_shift int int
|
||||
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
[gd_scene load_steps=10 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escterrain.gd" type="Script" id=1]
|
||||
[ext_resource path="res://game/rooms/room7/background.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/eschotspot.gd" type="Script" id=3]
|
||||
[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]
|
||||
|
||||
[sub_resource type="NavigationPolygon" id=1]
|
||||
@@ -12,85 +11,6 @@ vertices = PoolVector2Array( 1976.63, 640.557, 1987.95, 588.863, 2070.07, 622.87
|
||||
polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 0, 3, 6, 7 ), PoolIntArray( 7, 6, 8, 9, 10 ) ]
|
||||
outlines = [ PoolVector2Array( -6.44019, 711.297, 3.15687, 646.051, 59.2201, 628.698, 84.5821, 654.06, 129.634, 615.792, 1956.81, 616.096, 1976.63, 640.557, 1987.95, 588.863, 2070.07, 622.872, 2066.3, 799.721, -9.16094, 803.802 ) ]
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "r_door_close"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("r_door_closed:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ true ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("r_door_opened:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ false ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("Position2D:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 1180.52, 395.193 ) ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=3]
|
||||
resource_name = "r_door_open"
|
||||
length = 0.3
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("r_door_closed:visible")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ false ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("r_door_opened:visible")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 1,
|
||||
"values": [ true ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("Position2D:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/keys = {
|
||||
"times": PoolRealArray( 0 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 1225.47, 353.99 ) ]
|
||||
}
|
||||
|
||||
[node name="room7" type="Node2D"]
|
||||
script = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
@@ -101,18 +21,13 @@ esc_script = "res://game/rooms/room7/esc/room7.esc"
|
||||
player_scene = ExtResource( 4 )
|
||||
|
||||
[node name="background" parent="." instance=ExtResource( 2 )]
|
||||
margin_right = 2088.0
|
||||
|
||||
[node name="Line2D" type="Line2D" parent="background"]
|
||||
points = PoolVector2Array( 398.738, 142.591, 518.947, 64.809, 516.118, 275.527 )
|
||||
|
||||
[node name="walkable_area" type="Navigation2D" parent="."]
|
||||
script = ExtResource( 1 )
|
||||
scales = null
|
||||
bitmaps_scale = Vector2( 1, 1 )
|
||||
lightmap = null
|
||||
player_speed_multiplier = 1.0
|
||||
player_doubleclick_speed_multiplier = 1.5
|
||||
lightmap_modulate = Color( 1, 1, 1, 1 )
|
||||
debug_mode = 1
|
||||
scale_min = 0.3
|
||||
scale_max = 1.0
|
||||
|
||||
[node name="platform" type="NavigationPolygonInstance" parent="walkable_area"]
|
||||
position = Vector2( 7.73163, -264.779 )
|
||||
@@ -125,7 +40,7 @@ __meta__ = {
|
||||
|
||||
[node name="l_exit" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r6_l_exit"
|
||||
global_id = "r7_l_exit"
|
||||
is_exit = true
|
||||
esc_script = "res://game/rooms/room7/esc/left_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
@@ -142,7 +57,7 @@ position = Vector2( 37.4521, 392.045 )
|
||||
|
||||
[node name="r_exit" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r6_r_exit"
|
||||
global_id = "r7_r_exit"
|
||||
is_exit = true
|
||||
esc_script = "res://game/rooms/room7/esc/right_exit.esc"
|
||||
is_interactive = false
|
||||
@@ -150,13 +65,13 @@ interaction_direction = 1
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": Vector2( 1232.52, 347.193 ),
|
||||
"default": Vector2( 2038.8, 347.193 ),
|
||||
"r6_r_exit_closed": NodePath("r_door_closed/Position2D"),
|
||||
"r6_r_exit_opened": NodePath("r_door_opened/Position2D")
|
||||
}
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/r_exit"]
|
||||
polygon = PoolVector2Array( 1989, 343, 1986, 278.129, 2076, 316.129, 2075, 394 )
|
||||
polygon = PoolVector2Array( 1982.34, 349.116, 1980.1, 46.0513, 2081.12, 86.4599, 2075, 394 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/r_exit"]
|
||||
position = Vector2( 2038.8, 347.193 )
|
||||
@@ -164,31 +79,20 @@ __meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[node name="r_door" type="Sprite" parent="Hotspots"]
|
||||
visible = false
|
||||
script = ExtResource( 5 )
|
||||
[node name="object2" type="Area2D" parent="Hotspots"]
|
||||
position = Vector2( 1600.63, 13.4695 )
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r7_object2"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
interact_positions = {
|
||||
"default": null
|
||||
}
|
||||
|
||||
[node name="r_door_closed" type="Polygon2D" parent="Hotspots/r_door"]
|
||||
color = Color( 0.482353, 0.568627, 1, 1 )
|
||||
polygon = PoolVector2Array( 1172.3, 44.8186, 1172.3, 348.012, 1273.9, 401.983, 1277.07, 89.2657 )
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Hotspots/object2"]
|
||||
polygon = PoolVector2Array( -112.101, 14.6226, -103.122, 288.503, 130.35, 286.258, 125.861, 16.8675 )
|
||||
|
||||
[node name="Line2D" type="Line2D" parent="Hotspots/r_door/r_door_closed"]
|
||||
points = PoolVector2Array( 1265.23, 266.8, 1253.65, 276.6, 1252.76, 230.273, 1264.34, 233.837 )
|
||||
default_color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="r_door_opened" type="Polygon2D" parent="Hotspots/r_door"]
|
||||
visible = false
|
||||
color = Color( 0.482353, 0.568627, 1, 1 )
|
||||
polygon = PoolVector2Array( 1172.3, 44.8186, 1172.3, 348.012, 1029.82, 349.887, 1025.19, 42.1269 )
|
||||
|
||||
[node name="Line2D" type="Line2D" parent="Hotspots/r_door/r_door_opened"]
|
||||
points = PoolVector2Array( 1048.98, 230.477, 1048.98, 189.89 )
|
||||
default_color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Hotspots/r_door"]
|
||||
anims/r_door_close = SubResource( 2 )
|
||||
anims/r_door_open = SubResource( 3 )
|
||||
[node name="Line2D" type="Line2D" parent="Hotspots/object2"]
|
||||
points = PoolVector2Array( -74.0056, 70.7457, 2.32182, 28.0921, 89.8739, 77.4804, -82.9853, 268.299, 110.078, 261.564 )
|
||||
|
||||
[node name="player_start" type="Position2D" parent="."]
|
||||
position = Vector2( 76.7617, 437.649 )
|
||||
|
||||
Reference in New Issue
Block a user