hud
This commit is contained in:
parent
a6421235f8
commit
d729c0a7a3
14 changed files with 187 additions and 2 deletions
6
gui/hud.gd
Normal file
6
gui/hud.gd
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
extends CanvasLayer
|
||||
|
||||
@onready var score_label = $Score
|
||||
@onready var graze_label = $Graze
|
||||
@onready var lives_label = $Lives
|
||||
@onready var bombs_label = $Bombs
|
||||
1
gui/hud.gd.uid
Normal file
1
gui/hud.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://p8hkie00rjtx
|
||||
44
gui/hud.tscn
Normal file
44
gui/hud.tscn
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://6vjf1falt0a7"]
|
||||
|
||||
[ext_resource type="FontFile" uid="uid://dseq0eyk0say1" path="res://fonts/Super Mario Bros. NES.ttf" id="1_350da"]
|
||||
[ext_resource type="Script" uid="uid://p8hkie00rjtx" path="res://gui/hud.gd" id="1_u7rvv"]
|
||||
|
||||
[node name="Hud" type="CanvasLayer" groups=["viewport_autoload"]]
|
||||
script = ExtResource("1_u7rvv")
|
||||
|
||||
[node name="Score" type="Label" parent="."]
|
||||
offset_left = 4.0
|
||||
offset_top = 4.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 13.0
|
||||
theme_override_fonts/font = ExtResource("1_350da")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Score:0000000000"
|
||||
|
||||
[node name="Graze" type="Label" parent="."]
|
||||
offset_left = 4.0
|
||||
offset_top = 15.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 26.0
|
||||
theme_override_fonts/font = ExtResource("1_350da")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Graze:0"
|
||||
|
||||
[node name="Lives" type="Label" parent="."]
|
||||
offset_left = 4.0
|
||||
offset_top = 309.0
|
||||
offset_right = 132.0
|
||||
offset_bottom = 320.0
|
||||
theme_override_fonts/font = ExtResource("1_350da")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Lives:2"
|
||||
|
||||
[node name="Bombs" type="Label" parent="."]
|
||||
offset_left = 108.0
|
||||
offset_top = 309.0
|
||||
offset_right = 236.0
|
||||
offset_bottom = 320.0
|
||||
theme_override_fonts/font = ExtResource("1_350da")
|
||||
theme_override_font_sizes/font_size = 8
|
||||
text = "Bombs:3"
|
||||
horizontal_alignment = 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue