diff options
Diffstat (limited to 'scenes')
| -rw-r--r-- | scenes/GUI.tscn | 2 | ||||
| -rw-r--r-- | scenes/Game.tscn | 1 | ||||
| -rw-r--r-- | scenes/Level1.tscn | 27 | ||||
| -rw-r--r-- | scenes/Level2.tscn | 27 |
4 files changed, 51 insertions, 6 deletions
diff --git a/scenes/GUI.tscn b/scenes/GUI.tscn index 64b3b4e..63cfda8 100644 --- a/scenes/GUI.tscn +++ b/scenes/GUI.tscn @@ -74,6 +74,6 @@ anchor_top = 0.2 anchor_bottom = 0.4 margin_right = 40.0 margin_bottom = 14.0 -text = "Next" +text = ">>" valign = 1 [connection signal="pressed" from="BottomRow/DialogueBox/NextButton" to="." method="_on_NextButton_pressed"] diff --git a/scenes/Game.tscn b/scenes/Game.tscn index fe1432f..35d3bfd 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -12,4 +12,3 @@ script = ExtResource( 3 ) [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="GUI" parent="CanvasLayer" instance=ExtResource( 2 )] -[connection signal="dialogue_next" from="CanvasLayer/GUI" to="." method="_on_GUI_dialogue_next"] 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="."] diff --git a/scenes/Level2.tscn b/scenes/Level2.tscn index 6312f9c..b24d11b 100644 --- a/scenes/Level2.tscn +++ b/scenes/Level2.tscn @@ -5,7 +5,30 @@ [ext_resource path="res://scenes/Ladder.tscn" type="PackedScene" id=3] [ext_resource path="res://scenes/PlayerCharacter.tscn" type="PackedScene" id=4] [ext_resource path="res://externals/point_light.png" type="Texture" id=5] -[ext_resource path="res://scripts/Scene1.gd" type="Script" 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="Scene2" type="Node2D"] -script = ExtResource( 6 ) +script = SubResource( 46 ) [node name="YSort" type="YSort" parent="."] |
