Damage animation and abbreviation

This commit is contained in:
2024-06-26 09:11:51 -04:00
parent 3a1b69a987
commit 6465469d31
8 changed files with 719 additions and 812 deletions

14
Scenes/Score.gd Normal file
View File

@@ -0,0 +1,14 @@
extends Label
var from_score = 0
var to_score = 100
# Called when the node enters the scene tree for the first time.
func _ready():
#self.value = 100
#var tween = get_tree().create_tween()
#tween.tween_property(self, "value", to_score, 1.0).set_trans(Tween.TRANS_LINEAR)
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

11
Scenes/ScoreTween.gd Normal file
View File

@@ -0,0 +1,11 @@
extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass

View File

@@ -1,8 +1,9 @@
[gd_scene load_steps=6 format=3 uid="uid://xh0p6v5ir05f"]
[gd_scene load_steps=7 format=3 uid="uid://xh0p6v5ir05f"]
[ext_resource type="Script" path="res://Root.gd" id="1_lggo0"]
[ext_resource type="Script" path="res://User Interface/Header.gd" id="2_o6t6l"]
[ext_resource type="Script" path="res://User Interface/TeamButton.gd" id="3_1o3gu"]
[ext_resource type="Script" path="res://Scenes/Score.gd" id="3_gfalh"]
[ext_resource type="Script" path="res://User Interface/Bossbutton.gd" id="4_3csg5"]
[ext_resource type="Script" path="res://Scenes/saveTimer.gd" id="5_85eop"]
@@ -37,6 +38,7 @@ text = "Score:"
[node name="Score" type="Label" parent="UI/CanvasLayer/Header" groups=["Persist"]]
layout_mode = 2
text = "0"
script = ExtResource("3_gfalh")
[node name="Timer" type="Timer" parent="UI/CanvasLayer/Header" groups=["Persist"]]
autostart = true

View File

@@ -21,10 +21,12 @@ grow_vertical = 2
script = ExtResource("1_6ykb6")
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_right = 1920.0
offset_bottom = 1080.0
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="CanvasLayer" type="CanvasLayer" parent="UI"]
@@ -91,28 +93,37 @@ autostart = true
script = ExtResource("5_6vp5u")
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="UI"]
layout_mode = 0
offset_left = -3.0
offset_top = 40.0
offset_right = 1152.0
offset_bottom = 648.0
layout_mode = 1
anchors_preset = -1
anchor_top = 0.062
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -40.176
grow_horizontal = 2
grow_vertical = 2
[node name="TeamScreen" type="HBoxContainer" parent="UI/AspectRatioContainer"]
visibility_layer = 2
layout_mode = 2
size_flags_vertical = 4
alignment = 1
[node name="Member1" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 10)
[node name="VSeparator" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
layout_mode = 2
[node name="Member1" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 300)
layout_mode = 2
stretch_mode = 0
script = ExtResource("6_dqecs")
[node name="VSeparator" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
[node name="VSeparator1" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
layout_mode = 2
[node name="Member2" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 10)
layout_mode = 2
stretch_mode = 0
script = ExtResource("7_ddddf")
[node name="VSeparator2" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
@@ -121,6 +132,7 @@ layout_mode = 2
[node name="Member3" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 10)
layout_mode = 2
stretch_mode = 0
script = ExtResource("8_d2bof")
[node name="VSeparator3" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
@@ -129,6 +141,7 @@ layout_mode = 2
[node name="Member4" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 10)
layout_mode = 2
stretch_mode = 0
script = ExtResource("9_2ploj")
[node name="VSeparator4" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
@@ -137,8 +150,12 @@ layout_mode = 2
[node name="Member5" type="TextureButton" parent="UI/AspectRatioContainer/TeamScreen" groups=["Persist"]]
custom_minimum_size = Vector2(200, 10)
layout_mode = 2
stretch_mode = 0
script = ExtResource("10_vu24c")
[node name="VSeparator5" type="VSeparator" parent="UI/AspectRatioContainer/TeamScreen"]
layout_mode = 2
[node name="Label" type="Label" parent="UI/AspectRatioContainer/TeamScreen"]
visible = false
layout_mode = 2