Updated escoria-demo-game
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
[gd_scene load_steps=21 format=2]
|
||||
[gd_scene load_steps=20 format=2]
|
||||
|
||||
[ext_resource path="res://game/fonts/caslonantique.tres" type="DynamicFont" id=3]
|
||||
[ext_resource path="res://game/characters/mark/mark.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_room.gd" type="Script" id=6]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_item.gd" type="Script" id=7]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_location.gd" type="Script" id=8]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_background.gd" type="Script" id=9]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=10]
|
||||
[ext_resource path="res://game/rooms/room02/room2background.png" type="Texture" id=11]
|
||||
[ext_resource path="res://game/rooms/room02/floor3.png" type="Texture" id=12]
|
||||
@@ -32,7 +31,7 @@ extents = Vector2( 39, 39.5 )
|
||||
[sub_resource type="Animation" id=5]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("ESCBackground/Floor1:position")
|
||||
tracks/0/path = NodePath("Room2Background/Floor1:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
@@ -44,7 +43,7 @@ tracks/0/keys = {
|
||||
"values": [ Vector2( 495, 650 ) ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("ESCBackground/Floor2:position")
|
||||
tracks/1/path = NodePath("Room2Background/Floor2:position")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
@@ -56,7 +55,7 @@ tracks/1/keys = {
|
||||
"values": [ Vector2( 585, 650 ) ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("ESCBackground/Floor3:position")
|
||||
tracks/2/path = NodePath("Room2Background/Floor3:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
@@ -68,7 +67,7 @@ tracks/2/keys = {
|
||||
"values": [ Vector2( 696, 650 ) ]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/path = NodePath("ESCBackground/Floor4:position")
|
||||
tracks/3/path = NodePath("Room2Background/Floor4:position")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/imported = false
|
||||
@@ -83,7 +82,7 @@ tracks/3/keys = {
|
||||
[sub_resource type="Animation" id=6]
|
||||
length = 1.6
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("ESCBackground/Floor1:position")
|
||||
tracks/0/path = NodePath("Room2Background/Floor1:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
@@ -95,7 +94,7 @@ tracks/0/keys = {
|
||||
"values": [ Vector2( 495, 650 ), Vector2( 495, 450 ) ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("ESCBackground/Floor2:position")
|
||||
tracks/1/path = NodePath("Room2Background/Floor2:position")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
@@ -107,7 +106,7 @@ tracks/1/keys = {
|
||||
"values": [ Vector2( 585, 650 ), Vector2( 585, 650 ), Vector2( 585, 450 ) ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("ESCBackground/Floor4:position")
|
||||
tracks/2/path = NodePath("Room2Background/Floor4:position")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
@@ -119,7 +118,7 @@ tracks/2/keys = {
|
||||
"values": [ Vector2( 786, 650 ), Vector2( 786, 650 ), Vector2( 786, 450 ) ]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/path = NodePath("ESCBackground/Floor3:position")
|
||||
tracks/3/path = NodePath("Room2Background/Floor3:position")
|
||||
tracks/3/interp = 1
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/imported = false
|
||||
@@ -134,7 +133,7 @@ tracks/3/keys = {
|
||||
[sub_resource type="Animation" id=7]
|
||||
length = 1.6
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("ESCBackground/Floor1:position")
|
||||
tracks/0/path = NodePath("Room2Background/Floor1:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
@@ -146,7 +145,7 @@ tracks/0/keys = {
|
||||
"values": [ Vector2( 495, 450 ), Vector2( 495, 450 ), Vector2( 495, 650 ) ]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/path = NodePath("ESCBackground/Floor2:position")
|
||||
tracks/1/path = NodePath("Room2Background/Floor2:position")
|
||||
tracks/1/interp = 2
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
@@ -158,7 +157,7 @@ tracks/1/keys = {
|
||||
"values": [ Vector2( 585, 450 ), Vector2( 585, 450 ), Vector2( 585, 650 ) ]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/path = NodePath("ESCBackground/Floor3:position")
|
||||
tracks/2/path = NodePath("Room2Background/Floor3:position")
|
||||
tracks/2/interp = 2
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/imported = false
|
||||
@@ -170,7 +169,7 @@ tracks/2/keys = {
|
||||
"values": [ Vector2( 696, 450 ), Vector2( 696, 450 ), Vector2( 696, 650 ) ]
|
||||
}
|
||||
tracks/3/type = "value"
|
||||
tracks/3/path = NodePath("ESCBackground/Floor4:position")
|
||||
tracks/3/path = NodePath("Room2Background/Floor4:position")
|
||||
tracks/3/interp = 2
|
||||
tracks/3/loop_wrap = true
|
||||
tracks/3/imported = false
|
||||
@@ -192,6 +191,52 @@ player_scene = ExtResource( 4 )
|
||||
camera_limits = [ Rect2( 0, 0, 1280, 555 ) ]
|
||||
editor_debug_mode = 1
|
||||
|
||||
[node name="Room2Background" type="Sprite" parent="."]
|
||||
texture = ExtResource( 11 )
|
||||
centered = false
|
||||
|
||||
[node name="room_label" type="Label" parent="Room2Background"]
|
||||
margin_left = 18.0
|
||||
margin_top = 12.0
|
||||
margin_right = 100.0
|
||||
margin_bottom = 33.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "ROOM 2"
|
||||
|
||||
[node name="Floor1" type="Sprite" parent="Room2Background"]
|
||||
position = Vector2( 495, 650 )
|
||||
texture = ExtResource( 13 )
|
||||
|
||||
[node name="Floor2" type="Sprite" parent="Room2Background"]
|
||||
position = Vector2( 585, 650 )
|
||||
texture = ExtResource( 15 )
|
||||
|
||||
[node name="Floor4" type="Sprite" parent="Room2Background"]
|
||||
position = Vector2( 786, 650 )
|
||||
texture = ExtResource( 14 )
|
||||
|
||||
[node name="Floor3" type="Sprite" parent="Room2Background"]
|
||||
position = Vector2( 696, 650 )
|
||||
scale = Vector2( 1.01351, 1 )
|
||||
texture = ExtResource( 12 )
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Room2Background"]
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
polygon = PoolVector2Array( 0, 550, 1280, 550, 1280, 800, 0, 800 )
|
||||
|
||||
[node name="room_label2" type="Label" parent="Room2Background"]
|
||||
margin_left = 17.0
|
||||
margin_top = 558.0
|
||||
margin_right = 1126.0
|
||||
margin_bottom = 627.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Room 2 demonstrates modifying the walkable area of a room. Performing \"use\" on the button will cause the original navmesh (which has a gap
|
||||
in the middle) with one that covers the whole room (platforms + bridge) - allowing the player to walk from one side to the other.
|
||||
Setting the state of the r2_bridge variable to \"bridge_open\" or \"bridge_closed\" (see button.esc) automatically runs the animation with the same name."
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="r_platform" type="Area2D" parent="."]
|
||||
pause_mode = 1
|
||||
script = ExtResource( 7 )
|
||||
@@ -200,6 +245,7 @@ esc_script = "res://game/rooms/room02/esc/right_platform.esc"
|
||||
interaction_direction = 3
|
||||
tooltip_name = "Right platform"
|
||||
default_action = "look"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
animations = null
|
||||
|
||||
@@ -218,6 +264,7 @@ esc_script = "res://game/rooms/room02/esc/right_exit.esc"
|
||||
is_exit = true
|
||||
tooltip_name = "Right exit"
|
||||
default_action = "walk"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
animations = null
|
||||
|
||||
@@ -236,6 +283,7 @@ esc_script = "res://game/rooms/room02/esc/left_exit.esc"
|
||||
is_exit = true
|
||||
tooltip_name = "Left exit"
|
||||
default_action = "walk"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
animations = null
|
||||
|
||||
@@ -252,61 +300,6 @@ script = ExtResource( 8 )
|
||||
global_id = "r2_player_start"
|
||||
is_start_location = true
|
||||
|
||||
[node name="ESCBackground" type="TextureRect" parent="."]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 550.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource( 11 )
|
||||
script = ExtResource( 9 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="room_label" type="Label" parent="ESCBackground"]
|
||||
margin_left = 18.0
|
||||
margin_top = 12.0
|
||||
margin_right = 100.0
|
||||
margin_bottom = 33.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "ROOM 2"
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Floor1" type="Sprite" parent="ESCBackground"]
|
||||
position = Vector2( 495, 650 )
|
||||
texture = ExtResource( 13 )
|
||||
|
||||
[node name="Floor2" type="Sprite" parent="ESCBackground"]
|
||||
position = Vector2( 585, 650 )
|
||||
texture = ExtResource( 15 )
|
||||
|
||||
[node name="Floor4" type="Sprite" parent="ESCBackground"]
|
||||
position = Vector2( 786, 650 )
|
||||
texture = ExtResource( 14 )
|
||||
|
||||
[node name="Floor3" type="Sprite" parent="ESCBackground"]
|
||||
position = Vector2( 696, 650 )
|
||||
scale = Vector2( 1.01351, 1 )
|
||||
texture = ExtResource( 12 )
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="ESCBackground"]
|
||||
color = Color( 0, 0, 0, 1 )
|
||||
polygon = PoolVector2Array( 0, 550, 1280, 550, 1280, 800, 0, 800 )
|
||||
|
||||
[node name="room_label2" type="Label" parent="ESCBackground"]
|
||||
margin_left = 17.0
|
||||
margin_top = 558.0
|
||||
margin_right = 99.0
|
||||
margin_bottom = 579.0
|
||||
custom_fonts/font = ExtResource( 3 )
|
||||
text = "Room 2 demonstrates modifying the walkable area of a room. Performing \"use\" on the button will cause the original navmesh (which has a gap
|
||||
in the middle) with one that covers the whole room (platforms + bridge) - allowing the player to walk from one side to the other.
|
||||
Setting the state of the r2_bridge variable to \"bridge_open\" or \"bridge_closed\" (see button.esc) automatically runs the animation with the same name."
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="walkable_area" type="Navigation2D" parent="."]
|
||||
script = ExtResource( 10 )
|
||||
debug_mode = 1
|
||||
@@ -327,6 +320,7 @@ global_id = "r2_button"
|
||||
esc_script = "res://game/rooms/room02/esc/button.esc"
|
||||
tooltip_name = "button"
|
||||
default_action = "use"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 0.196078, 1, 0, 1 )
|
||||
animations = null
|
||||
|
||||
@@ -347,6 +341,7 @@ global_id = "r2_button_right"
|
||||
esc_script = "res://game/rooms/room02/esc/button.esc"
|
||||
tooltip_name = "button"
|
||||
default_action = "use"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 0.196078, 1, 0, 1 )
|
||||
animations = null
|
||||
|
||||
@@ -364,6 +359,7 @@ script = ExtResource( 8 )
|
||||
pause_mode = 1
|
||||
script = ExtResource( 7 )
|
||||
global_id = "r2_bridge"
|
||||
combine_when_selected_action_is_in = [ ]
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
animations = null
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user