Initial commit of Escoria-Reloaded. Still a lot of missing stuff.
This commit is contained in:
24
game/rooms/room1/background.tscn
Normal file
24
game/rooms/room1/background.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escbackground.gd" type="Script" id=1]
|
||||
|
||||
[node name="background" type="TextureRect"]
|
||||
margin_right = 1289.0
|
||||
margin_bottom = 555.0
|
||||
mouse_filter = 2
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="l_platform" type="Line2D" parent="."]
|
||||
position = Vector2( 2, -266 )
|
||||
points = PoolVector2Array( -2.96298, 712.01, 129.973, 614.429, 1167.5, 612.894, 1281.5, 668.894, 1281.5, 812.894, -4.3772, 811.004, -2.96295, 713.424 )
|
||||
|
||||
[node name="r_door" type="Line2D" parent="."]
|
||||
position = Vector2( 0, -267.828 )
|
||||
points = PoolVector2Array( 1175.07, 620.086, 1171.24, 311.267, 1274.8, 356.87, 1278.31, 672.412, 1188.64, 624.843 )
|
||||
|
||||
[node name="item" type="Line2D" parent="."]
|
||||
position = Vector2( 0, -267.828 )
|
||||
points = PoolVector2Array( 634.097, 516.751, 578.861, 335.008, 701.805, 386.68, 696.459, 509.624, 634.097, 516.751 )
|
||||
2
game/rooms/room1/esc/right_exit.esc
Executable file
2
game/rooms/room1/esc/right_exit.esc
Executable file
@@ -0,0 +1,2 @@
|
||||
:exit_scene
|
||||
change_scene "res://game/rooms/room2/room2.tscn"
|
||||
3
game/rooms/room1/esc/right_platform.esc
Executable file
3
game/rooms/room1/esc/right_platform.esc
Executable file
@@ -0,0 +1,3 @@
|
||||
:look
|
||||
say player "That's the other side."
|
||||
|
||||
10
game/rooms/room1/esc/room1.esc
Executable file
10
game/rooms/room1/esc/room1.esc
Executable file
@@ -0,0 +1,10 @@
|
||||
:setup
|
||||
> [eq ESC_LAST_SCENE room2]
|
||||
teleport player r1_r_exit
|
||||
# Set player look left
|
||||
set_angle player 270
|
||||
stop
|
||||
> [!last_scene]
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
13
game/rooms/room1/esc/wall_item.esc
Executable file
13
game/rooms/room1/esc/wall_item.esc
Executable file
@@ -0,0 +1,13 @@
|
||||
:look
|
||||
> [! dialog_advance]
|
||||
say player "I don't know what that stuff is."
|
||||
set_global dialog_advance 1
|
||||
stop
|
||||
> [eq dialog_advance 1]
|
||||
say player "I REALLY don't know what that stuff is." dialog_box_inset
|
||||
set_global dialog_advance 2
|
||||
stop
|
||||
> [eq dialog_advance 2]
|
||||
say player "No, SERIOUSLY, I have no idea what that is!"
|
||||
say player "Please stop asking me that!"
|
||||
stop
|
||||
69
game/rooms/room1/room1.tscn
Normal file
69
game/rooms/room1/room1.tscn
Normal file
@@ -0,0 +1,69 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[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://addons/escoria-core/game/core-scripts/escroom.gd" type="Script" id=6]
|
||||
|
||||
[node name="room1" type="Node2D"]
|
||||
script = ExtResource( 6 )
|
||||
__meta__ = {
|
||||
"_edit_vertical_guides_": [ ]
|
||||
}
|
||||
global_id = "room1"
|
||||
esc_script = "res://game/rooms/room1/esc/room1.esc"
|
||||
player_scene = ExtResource( 4 )
|
||||
|
||||
[node name="background" parent="." instance=ExtResource( 2 )]
|
||||
|
||||
[node name="Label" type="Label" parent="background"]
|
||||
margin_left = 371.033
|
||||
margin_top = 214.057
|
||||
margin_right = 551.033
|
||||
margin_bottom = 245.057
|
||||
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="."]
|
||||
|
||||
[node name="r_door" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
global_id = "r1_r_exit"
|
||||
is_exit = true
|
||||
esc_script = "res://game/rooms/room1/esc/right_exit.esc"
|
||||
tooltip_name = "Exit"
|
||||
dialog_color = Color( 1, 1, 1, 1 )
|
||||
|
||||
[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 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/r_door"]
|
||||
position = Vector2( 1225.47, 353.99 )
|
||||
|
||||
[node name="item" type="Area2D" parent="Hotspots"]
|
||||
script = ExtResource( 3 )
|
||||
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 )
|
||||
|
||||
[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 )
|
||||
|
||||
[node name="Position2D" type="Position2D" parent="Hotspots/item"]
|
||||
position = Vector2( 671.798, 373.035 )
|
||||
|
||||
[node name="player_start" type="Position2D" parent="."]
|
||||
position = Vector2( 76.7617, 437.649 )
|
||||
18
game/rooms/room1/walkable_area.tscn
Normal file
18
game/rooms/room1/walkable_area.tscn
Normal file
@@ -0,0 +1,18 @@
|
||||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/escterrain.gd" type="Script" id=1]
|
||||
|
||||
[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, -6.44019, 711.297 )
|
||||
polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 0, 3, 6, 7 ) ]
|
||||
outlines = [ PoolVector2Array( -6.44019, 711.297, 129.634, 615.792, 1143.08, 613.35, 1168.92, 640.557, 1182.53, 588.863, 1269.59, 622.872, 1275.03, 799.721, -9.16094, 803.802 ) ]
|
||||
|
||||
[node name="walkable_area" type="Navigation2D"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="platform" type="NavigationPolygonInstance" parent="."]
|
||||
position = Vector2( 6.73163, -264.779 )
|
||||
navpoly = SubResource( 1 )
|
||||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
Reference in New Issue
Block a user