summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/interface.tscn8
-rw-r--r--scenes/level.tscn7
2 files changed, 14 insertions, 1 deletions
diff --git a/scenes/interface.tscn b/scenes/interface.tscn
new file mode 100644
index 0000000..a4c15df
--- /dev/null
+++ b/scenes/interface.tscn
@@ -0,0 +1,8 @@
+[gd_scene load_steps=2 format=2]
+
+[ext_resource path="res://Label.gd" type="Script" id=1]
+
+[node name="Label" type="Label"]
+margin_right = 40.0
+margin_bottom = 14.0
+script = ExtResource( 1 )
diff --git a/scenes/level.tscn b/scenes/level.tscn
index ebf475e..147b1a9 100644
--- a/scenes/level.tscn
+++ b/scenes/level.tscn
@@ -1,14 +1,17 @@
-[gd_scene load_steps=5 format=2]
+[gd_scene load_steps=6 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://scenes/hoop.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/basketball.tscn" type="PackedScene" id=3]
+[ext_resource path="res://scenes/interface.tscn" type="PackedScene" id=4]
[sub_resource type="LineShape2D" id=1]
d = 10.0
[node name="Node2D" type="Node2D"]
+[node name="Label" parent="." instance=ExtResource( 4 )]
+
[node name="Hoop" parent="." instance=ExtResource( 2 )]
position = Vector2( 721, 215 )
@@ -28,3 +31,5 @@ texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Floor"]
shape = SubResource( 1 )
+
+[connection signal="score" from="Hoop" to="Label" method="_on_Hoop_score"]