summaryrefslogtreecommitdiff
path: root/Scenes/Damage.tscn
diff options
context:
space:
mode:
authorVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-17 14:17:53 -0300
committerVictor Andrade de Almeida <vct.a.almeida@gmail.com>2022-07-17 14:18:05 -0300
commitca8f5b86ea94328a755a1a181ee5a0a6736c6536 (patch)
tree4d43cfb093c347d288ed91de6f7fc4841b022aac /Scenes/Damage.tscn
parent2514718e386d2210c374bc42fbab704c535b9a83 (diff)
downloadgamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.tar.gz
gamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.tar.bz2
gamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.zip
Add damage label
Diffstat (limited to 'Scenes/Damage.tscn')
-rw-r--r--Scenes/Damage.tscn65
1 files changed, 65 insertions, 0 deletions
diff --git a/Scenes/Damage.tscn b/Scenes/Damage.tscn
new file mode 100644
index 0000000..2265ceb
--- /dev/null
+++ b/Scenes/Damage.tscn
@@ -0,0 +1,65 @@
+[gd_scene load_steps=4 format=2]
+
+[ext_resource path="res://Assets/AlegreyaSansSC-ExtraBold.ttf" type="DynamicFontData" id=1]
+
+[sub_resource type="DynamicFont" id=30]
+size = 48
+outline_size = 2
+outline_color = Color( 0.380392, 0, 0, 1 )
+font_data = ExtResource( 1 )
+
+[sub_resource type="Animation" id=31]
+resource_name = "Fade"
+tracks/0/type = "value"
+tracks/0/path = NodePath("Label:rect_position")
+tracks/0/interp = 1
+tracks/0/loop_wrap = true
+tracks/0/imported = false
+tracks/0/enabled = true
+tracks/0/keys = {
+"times": PoolRealArray( 0, 0.8 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 0,
+"values": [ Vector2( 0, -49 ), Vector2( 0, -113 ) ]
+}
+tracks/1/type = "value"
+tracks/1/path = NodePath("Label:modulate")
+tracks/1/interp = 1
+tracks/1/loop_wrap = true
+tracks/1/imported = false
+tracks/1/enabled = true
+tracks/1/keys = {
+"times": PoolRealArray( 0, 0.8 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 0,
+"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
+}
+tracks/2/type = "value"
+tracks/2/path = NodePath("Label:visible")
+tracks/2/interp = 1
+tracks/2/loop_wrap = true
+tracks/2/imported = false
+tracks/2/enabled = true
+tracks/2/keys = {
+"times": PoolRealArray( 0, 0.8 ),
+"transitions": PoolRealArray( 1, 1 ),
+"update": 1,
+"values": [ true, false ]
+}
+
+[node name="Damage" type="Control"]
+margin_left = 13.0
+margin_top = -63.0
+margin_right = 53.0
+margin_bottom = -23.0
+
+[node name="Label" type="Label" parent="."]
+margin_top = -49.0
+margin_right = 38.0
+grow_vertical = 0
+custom_colors/font_color = Color( 1, 0, 0, 1 )
+custom_fonts/font = SubResource( 30 )
+text = "-6"
+
+[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
+anims/Fade = SubResource( 31 )