Flopsy/scenes/hud.tscn

63 lines
1.6 KiB
Text
Raw Normal View History

2022-07-17 14:24:15 +02:00
[gd_scene load_steps=6 format=2]
2022-07-17 17:08:39 +02:00
[ext_resource path="res://common/fonts/DSEG14Classic-Bold.ttf" type="DynamicFontData" id=1]
2022-07-17 14:24:15 +02:00
[ext_resource path="res://scenes/hud.gd" type="Script" id=2]
[ext_resource path="res://objects/coin/assets/gold_1.png" type="Texture" id=3]
[sub_resource type="DynamicFont" id=1]
size = 64
font_data = ExtResource( 1 )
[sub_resource type="Animation" id=2]
resource_name = "Fade"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}
[node name="HUD" type="CanvasLayer"]
layer = 128
script = ExtResource( 2 )
[node name="HUD_Items" type="ReferenceRect" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
[node name="ScoreLabel" type="Label" parent="HUD_Items"]
anchor_right = 1.0
margin_left = 1848.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = 84.0
grow_horizontal = 0
custom_colors/font_color = Color( 0.294118, 0.294118, 0.294118, 1 )
custom_fonts/font = SubResource( 1 )
text = "0"
align = 2
[node name="TextureRect" type="TextureRect" parent="HUD_Items/ScoreLabel"]
margin_left = -70.0
margin_top = 4.0
margin_right = 14.0
margin_bottom = 88.0
rect_scale = Vector2( 0.7, 0.7 )
texture = ExtResource( 3 )
[node name="SceneTransition" type="ColorRect" parent="."]
modulate = Color( 1, 1, 1, 0 )
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 1 )
[node name="Animation" type="AnimationPlayer" parent="SceneTransition"]
anims/Fade = SubResource( 2 )