62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://assets/coin.png" type="Texture" id=1]
|
|
[ext_resource path="res://hud/coin/CoinCounter.gdns" type="Script" id=2]
|
|
[ext_resource path="res://hud/CoinHUD.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="StyleBoxFlat" id=1]
|
|
bg_color = Color( 0, 0, 0, 0.541176 )
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 18, 18 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 18, 0, 18, 18 )
|
|
|
|
[sub_resource type="SpriteFrames" id=4]
|
|
animations = [ {
|
|
"frames": [ SubResource( 2 ), SubResource( 3 ) ],
|
|
"loop": true,
|
|
"name": "spin",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[node name="CoinHUD" type="CanvasLayer"]
|
|
pause_mode = 2
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="Panel" type="Panel" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = -44.5
|
|
margin_top = 5.0
|
|
margin_right = 44.5
|
|
margin_bottom = 25.0
|
|
custom_styles/panel = SubResource( 1 )
|
|
|
|
[node name="X" type="Label" parent="Panel"]
|
|
margin_left = 40.0
|
|
margin_top = 4.0
|
|
margin_right = 53.0
|
|
margin_bottom = 24.0
|
|
text = "X"
|
|
|
|
[node name="Coins" type="Label" parent="Panel"]
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
margin_left = 13.5
|
|
margin_top = 4.0
|
|
margin_right = 36.0
|
|
margin_bottom = 18.0
|
|
text = "##"
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="Panel"]
|
|
position = Vector2( 12, 1 )
|
|
frames = SubResource( 4 )
|
|
animation = "spin"
|
|
playing = true
|
|
centered = false
|