score and lives partially implemented

This commit is contained in:
Tabby 2025-06-09 14:43:22 +10:00
parent 39ae7beeee
commit bb8d2a7b97
11 changed files with 250 additions and 3 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=3 uid="uid://sntwtley2f7d"]
[gd_scene load_steps=13 format=3 uid="uid://sntwtley2f7d"]
[ext_resource type="Texture2D" uid="uid://dj6mkweo8kgcs" path="res://Sprites/smol-up.png" id="1_80nbo"]
[ext_resource type="Script" uid="uid://c7c1yy0hv1u3r" path="res://logic.gd" id="1_e2o6t"]
@ -6,13 +6,26 @@
[ext_resource type="Texture2D" uid="uid://ducbe6ucctlr6" path="res://Sprites/smol-down.png" id="4_ryrav"]
[ext_resource type="Texture2D" uid="uid://25g6athehh1s" path="res://Sprites/smol-left.png" id="5_eow3j"]
[ext_resource type="Texture2D" uid="uid://y2ytspjqefbk" path="res://Sprites/smol-blank.png" id="6_ryrav"]
[ext_resource type="Texture2D" uid="uid://n6rnl67gxggv" path="res://Sprites/hint00.png" id="7_hve3p"]
[ext_resource type="Texture2D" uid="uid://drtw5y8tfkxp8" path="res://Sprites/ScoreLife.png" id="8_mfdv2"]
[ext_resource type="Texture2D" uid="uid://bwq8fwuhoax4i" path="res://Sprites/SamLife.png" id="9_iotsf"]
[ext_resource type="Texture2D" uid="uid://c8u0xx3dnbcwq" path="res://Sprites/targetBG.png" id="10_lc2xo"]
[node name="Node2D" type="Node2D" node_paths=PackedStringArray("icon_container", "progress_bar", "scroll_container")]
[sub_resource type="LabelSettings" id="LabelSettings_215e1"]
font_size = 30
[sub_resource type="LabelSettings" id="LabelSettings_7sc4i"]
font_size = 30
[node name="Node2D" type="Node2D" node_paths=PackedStringArray("icon_container", "progress_bar", "scroll_container", "score_label", "life_container")]
script = ExtResource("1_e2o6t")
icon_container = NodePath("CanvasLayer/VBoxContainer/HFlowContainer/HBoxContainer")
icons = Array[Texture]([ExtResource("1_80nbo"), ExtResource("3_7jktm"), ExtResource("4_ryrav"), ExtResource("5_eow3j"), ExtResource("6_ryrav")])
progress_bar = NodePath("CanvasLayer/VBoxContainer/ProgressBar")
scroll_container = NodePath("CanvasLayer/VBoxContainer/HFlowContainer")
score_label = NodePath("CanvasLayer/Score_Lives Display/ScoreLabel")
life_container = NodePath("CanvasLayer/Score_Lives Display/Lives")
life_texture = ExtResource("9_iotsf")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
@ -209,3 +222,67 @@ texture = ExtResource("6_ryrav")
layout_mode = 2
max_value = 1.0
step = 0.0
[node name="Hint" type="TextureRect" parent="CanvasLayer"]
offset_left = 47.0
offset_top = 47.0
offset_right = 240.0
offset_bottom = 307.0
texture = ExtResource("7_hve3p")
[node name="Score_Lives Display" type="TextureRect" parent="CanvasLayer"]
offset_left = 902.0
offset_top = 51.0
offset_right = 1095.0
offset_bottom = 311.0
texture = ExtResource("8_mfdv2")
[node name="ScoreLabel" type="Label" parent="CanvasLayer/Score_Lives Display"]
layout_mode = 0
offset_left = 36.0
offset_top = 111.0
offset_right = 156.0
offset_bottom = 153.0
text = "8888888"
label_settings = SubResource("LabelSettings_215e1")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Lives" type="HBoxContainer" parent="CanvasLayer/Score_Lives Display"]
layout_mode = 0
offset_left = 37.0
offset_top = 197.0
offset_right = 153.0
offset_bottom = 241.0
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/Score_Lives Display/Lives"]
visible = false
layout_mode = 2
texture = ExtResource("9_iotsf")
[node name="TextureRect2" type="TextureRect" parent="CanvasLayer/Score_Lives Display/Lives"]
visible = false
layout_mode = 2
texture = ExtResource("9_iotsf")
[node name="TextureRect3" type="TextureRect" parent="CanvasLayer/Score_Lives Display/Lives"]
visible = false
layout_mode = 2
texture = ExtResource("9_iotsf")
[node name="RoundDisplay" type="TextureRect" parent="."]
offset_left = 902.0
offset_top = 338.0
offset_right = 1095.0
offset_bottom = 488.0
texture = ExtResource("10_lc2xo")
[node name="Label" type="Label" parent="RoundDisplay"]
layout_mode = 0
offset_left = 57.0
offset_top = 81.0
offset_right = 136.0
offset_bottom = 123.0
text = "8 of 8"
label_settings = SubResource("LabelSettings_7sc4i")
horizontal_alignment = 1