summaryrefslogtreecommitdiffstats
path: root/scenes/Level1.tscn
diff options
context:
space:
mode:
authorJan Tuomi <jan.tuomi@valuemotive.com>2020-08-08 21:35:15 +0300
committerJan Tuomi <jan.tuomi@valuemotive.com>2020-08-08 21:35:15 +0300
commitbc72e9a407db4fcc830450c112de90f5d1c251a9 (patch)
tree6e9787e3e144243146687e8c39c8e6644946fbe3 /scenes/Level1.tscn
parentc438ce2976c4dda931918c019a25e00104d0cbc2 (diff)
Improve dialogue system
Diffstat (limited to 'scenes/Level1.tscn')
-rw-r--r--scenes/Level1.tscn27
1 files changed, 25 insertions, 2 deletions
diff --git a/scenes/Level1.tscn b/scenes/Level1.tscn
index 87924f5..36517cf 100644
--- a/scenes/Level1.tscn
+++ b/scenes/Level1.tscn
@@ -3,10 +3,33 @@
[ext_resource path="res://scenes/PlayerCharacter.tscn" type="PackedScene" id=1]
[ext_resource path="res://textures/world_tileset.tres" type="Texture" id=2]
[ext_resource path="res://scenes/DwarfNPC.tscn" type="PackedScene" id=3]
-[ext_resource path="res://scripts/Scene1.gd" type="Script" id=4]
[ext_resource path="res://externals/point_light.png" type="Texture" id=5]
[ext_resource path="res://scenes/Ladder.tscn" type="PackedScene" id=6]
+[sub_resource type="GDScript" id=46]
+script/source = "extends Node2D
+
+
+# Declare member variables here. Examples:
+# var a = 2
+# var b = \"text\"
+
+
+# Called when the node enters the scene tree for the first time.
+func _ready():
+ pass # Replace with function body.
+
+
+# Called every frame. 'delta' is the elapsed time since the previous frame.
+func _process(_delta):
+ pass
+
+func _unhandled_input(event):
+ if event is InputEventKey:
+ if event.pressed and event.scancode == KEY_ESCAPE:
+ get_tree().quit()
+"
+
[sub_resource type="OccluderPolygon2D" id=1]
polygon = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 )
@@ -296,7 +319,7 @@ points = PoolVector2Array( 4, 4, 4, 0, 8, 0, 8, 8, 0, 8, 0, 4 )
0/z_index = 0
[node name="Scene1" type="Node2D"]
-script = ExtResource( 4 )
+script = SubResource( 46 )
[node name="YSort" type="YSort" parent="."]