mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-22 06:43:46 +00:00
selector changes
This commit is contained in:
parent
686dea6c8d
commit
f9432a61ee
11 changed files with 103 additions and 16 deletions
|
|
@ -1,10 +1,34 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Hud.cs" id="1_m0hb0"]
|
||||
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_0xmx2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="3_hee3i"]
|
||||
|
||||
[node name="HUD" type="CanvasLayer"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h626b"]
|
||||
atlas = ExtResource("3_hee3i")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mejna"]
|
||||
atlas = ExtResource("3_hee3i")
|
||||
region = Rect2(16, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_78fwv"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_h626b")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mejna")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[node name="HUD" type="CanvasLayer" node_paths=PackedStringArray("_selector")]
|
||||
script = ExtResource("1_m0hb0")
|
||||
_selector = NodePath("AnimatedSprite2D")
|
||||
|
||||
[node name="HealthLabel" type="Label" parent="."]
|
||||
anchors_preset = 2
|
||||
|
|
@ -39,3 +63,10 @@ text = "GAME OVER"
|
|||
[node name="MessageTimer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(67, 47)
|
||||
sprite_frames = SubResource("SpriteFrames_78fwv")
|
||||
frame = 1
|
||||
frame_progress = 0.8514
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue