From bc72e9a407db4fcc830450c112de90f5d1c251a9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 8 Aug 2020 21:35:15 +0300 Subject: Improve dialogue system --- scenes/Level1.tscn | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'scenes/Level1.tscn') 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="."] -- cgit v1.3