Updated escoria-demo-game
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_background.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, 1274.59, 669.705, 1273.25, 812.694, 2.36697, 811.043, 2.36697, 713.389 )
|
||||
|
||||
[node name="l_door" type="Line2D" parent="."]
|
||||
position = Vector2( 0, -266 )
|
||||
points = PoolVector2Array( 6.61201, 704.409, 6.61203, 389.558, 87.755, 339.775, 87.5463, 649.784 )
|
||||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
||||
[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, 1271.64, 671.735, 1188.64, 624.843 )
|
||||
@@ -83,4 +83,26 @@ set_active worker false
|
||||
set_gui_visible true
|
||||
accept_input ALL
|
||||
|
||||
# use has to be supported as simplemouse has no "give" icon
|
||||
:use r5_filled_sheet
|
||||
set_gui_visible false
|
||||
accept_input SKIP
|
||||
|
||||
inventory_remove r5_filled_sheet
|
||||
say worker "I've unlocked the door, in you go!"
|
||||
walk worker r6_r_exit
|
||||
|
||||
# Open the door
|
||||
set_global r6_r_exit_locked false
|
||||
# Hide the closed door graphic
|
||||
set_state r6_r_exit open_door
|
||||
# Make the open exit visible
|
||||
set_active r6_r_exit true
|
||||
|
||||
# Disappear!
|
||||
say worker "I will see you again... MUAHAHAHAHA!"
|
||||
wait 1
|
||||
set_active worker false
|
||||
|
||||
set_gui_visible true
|
||||
accept_input ALL
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
[gd_scene load_steps=19 format=2]
|
||||
[gd_scene load_steps=18 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_terrain.gd" type="Script" id=1]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_background.gd" type="Script" id=2]
|
||||
[ext_resource path="res://addons/escoria-core/game/core-scripts/esc_exit.gd" type="Script" id=3]
|
||||
[ext_resource path="res://game/characters/mark/mark.tscn" type="PackedScene" id=4]
|
||||
[ext_resource path="res://game/rooms/room06/wave.png" type="Texture" id=5]
|
||||
@@ -63,12 +62,9 @@ esc_script = "res://game/rooms/room06/esc/room06.esc"
|
||||
player_scene = ExtResource( 4 )
|
||||
camera_limits = [ Rect2( 0, 0, 1280, 555 ) ]
|
||||
|
||||
[node name="ESCBackground" type="TextureRect" parent="."]
|
||||
margin_right = 1280.0
|
||||
margin_bottom = 550.0
|
||||
mouse_filter = 2
|
||||
[node name="Room6Background" type="Sprite" parent="."]
|
||||
texture = ExtResource( 12 )
|
||||
script = ExtResource( 2 )
|
||||
centered = false
|
||||
|
||||
[node name="walkable_area" type="Navigation2D" parent="."]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 33 KiB |
Reference in New Issue
Block a user