mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-07-12 18:43:49 +00:00
feat(*): Add hud with timer
This commit is contained in:
+26
-1
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://p07epxnh8wwp"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://p07epxnh8wwp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dyq1n7q1bqjps" path="res://scripts/ship.gd" id="1_efag7"]
|
||||
|
||||
@@ -8,6 +8,9 @@ size = Vector3(1, 1, 4)
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_dsjou"]
|
||||
size = Vector3(1, 1, 4)
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_efag7"]
|
||||
font_size = 32
|
||||
|
||||
[node name="Ship" type="RigidBody3D"]
|
||||
mass = 10.0
|
||||
gravity_scale = 10.0
|
||||
@@ -21,3 +24,25 @@ shape = SubResource("BoxShape3D_dsjou")
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.867366, 0.497671, 0, -0.497671, 0.867366, 0, 2.04336, 3.31556)
|
||||
|
||||
[node name="HUD" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="Control" type="Control" parent="HUD"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="TimerLabel" type="Label" parent="HUD/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
anchor_left = 0.5
|
||||
anchor_right = 0.5
|
||||
offset_left = -90.5
|
||||
offset_right = 90.5
|
||||
offset_bottom = 62.0
|
||||
grow_horizontal = 2
|
||||
label_settings = SubResource("LabelSettings_efag7")
|
||||
horizontal_alignment = 1
|
||||
|
||||
Reference in New Issue
Block a user