From bc73f5f075540c2f60b3ec2e216a3ecda85fdfc3 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sat, 1 Aug 2020 15:51:18 +0300 Subject: Add GUI --- scenes/Scene2.tscn | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'scenes/Scene2.tscn') diff --git a/scenes/Scene2.tscn b/scenes/Scene2.tscn index 4888419..a19590b 100644 --- a/scenes/Scene2.tscn +++ b/scenes/Scene2.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=52 format=2] +[gd_scene load_steps=53 format=2] [ext_resource path="res://scenes/PlayerCharacter.tscn" type="PackedScene" id=1] [ext_resource path="res://textures/world_tileset.tres" type="Texture" id=2] @@ -6,6 +6,7 @@ [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] +[ext_resource path="res://scripts/GUI.gd" type="Script" id=7] [sub_resource type="OccluderPolygon2D" id=1] polygon = PoolVector2Array( 8, 8, 0, 8, 0, 0, 8, 0 ) @@ -339,3 +340,13 @@ target = NodePath("../../../Scene2/YSort/PlayerCharacter") [node name="Ladder" parent="YSort" instance=ExtResource( 6 )] position = Vector2( 88, 48 ) target_scene_num = 1 + +[node name="CanvasLayer" type="CanvasLayer" parent="."] + +[node name="GUI" type="MarginContainer" parent="CanvasLayer"] +margin_right = 40.0 +margin_bottom = 40.0 +script = ExtResource( 7 ) +__meta__ = { +"_edit_use_anchors_": false +} -- cgit v1.3