You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
200 lines
6.7 KiB
200 lines
6.7 KiB
[gd_scene load_steps=14 format=3 uid="uid://c6k2qn8l56rf5"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://di8on8rry21wa" path="res://Fighter.tscn" id="1_1yg04"]
|
|
[ext_resource type="Script" path="res://fight.gd" id="1_3edp6"]
|
|
[ext_resource type="Texture2D" uid="uid://ddsu16o54xyph" path="res://assets/Sprites/086-OtcZb45.png" id="2_h40sr"]
|
|
[ext_resource type="Script" path="res://Background.gd" id="3_dsftl"]
|
|
[ext_resource type="Script" path="res://FpsLabel.gd" id="3_xkxlv"]
|
|
[ext_resource type="Script" path="res://UserLabel.gd" id="4_beyjo"]
|
|
[ext_resource type="Texture2D" uid="uid://c6aahxuqcgcnp" path="res://assets/Sprites/texture-bar-progress-0001.png" id="5_fa5wd"]
|
|
[ext_resource type="Texture2D" uid="uid://bg5m7faciqihv" path="res://assets/Sprites/texture-bar-outer-0001.png" id="6_gxbv2"]
|
|
[ext_resource type="Script" path="res://HpBar.gd" id="7_po066"]
|
|
[ext_resource type="Script" path="res://CountDownLabel.gd" id="8_nagyd"]
|
|
|
|
[sub_resource type="Animation" id="Animation_cemsf"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_nj0ai"]
|
|
resource_name = "default"
|
|
length = 1.6
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_bjoup"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_cemsf"),
|
|
"default": SubResource("Animation_nj0ai")
|
|
}
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
script = ExtResource("1_3edp6")
|
|
|
|
[node name="Background" type="Node2D" parent="."]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Background"]
|
|
position = Vector2(320.5, 241.5)
|
|
scale = Vector2(1.15156, 1.31793)
|
|
texture = ExtResource("2_h40sr")
|
|
hframes = 4
|
|
vframes = 4
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Background"]
|
|
root_node = NodePath("../Sprite2D")
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_bjoup")
|
|
}
|
|
script = ExtResource("3_dsftl")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Background"]
|
|
offset_right = 1600.0
|
|
offset_bottom = 1197.0
|
|
scale = Vector2(0.4, 0.4)
|
|
|
|
[node name="LhsFighter" parent="." instance=ExtResource("1_1yg04")]
|
|
position = Vector2(192, 352)
|
|
descriptor = "LHS"
|
|
|
|
[node name="RhsFighter" parent="." instance=ExtResource("1_1yg04")]
|
|
position = Vector2(462, 353)
|
|
orientation = 0
|
|
descriptor = "RHS"
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
[node name="FpsLabel" type="Label" parent="."]
|
|
offset_right = 38.0
|
|
offset_bottom = 23.0
|
|
text = "FPS:"
|
|
script = ExtResource("3_xkxlv")
|
|
|
|
[node name="SessionLabel" type="Label" parent="."]
|
|
offset_left = 290.0
|
|
offset_right = 394.0
|
|
offset_bottom = 23.0
|
|
script = ExtResource("4_beyjo")
|
|
|
|
[node name="LhsHp" type="TextureProgressBar" parent="."]
|
|
offset_left = 5.0
|
|
offset_top = 25.0
|
|
offset_right = 305.0
|
|
offset_bottom = 50.0
|
|
value = 80.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
texture_under = ExtResource("5_fa5wd")
|
|
texture_over = ExtResource("6_gxbv2")
|
|
texture_progress = ExtResource("5_fa5wd")
|
|
tint_under = Color(0.411765, 0, 0, 1)
|
|
tint_over = Color(0, 0, 0, 1)
|
|
tint_progress = Color(1, 0, 0, 1)
|
|
script = ExtResource("7_po066")
|
|
|
|
[node name="LhsStamina" type="TextureProgressBar" parent="."]
|
|
offset_left = 5.0
|
|
offset_top = 51.0
|
|
offset_right = 265.0
|
|
offset_bottom = 61.0
|
|
value = 80.0
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
texture_under = ExtResource("5_fa5wd")
|
|
texture_over = ExtResource("6_gxbv2")
|
|
texture_progress = ExtResource("5_fa5wd")
|
|
tint_under = Color(0.411765, 0.411765, 0, 1)
|
|
tint_over = Color(0, 0, 0, 1)
|
|
tint_progress = Color(1, 1, 0, 1)
|
|
script = ExtResource("7_po066")
|
|
|
|
[node name="RhsHp" type="TextureProgressBar" parent="."]
|
|
offset_left = 333.0
|
|
offset_top = 25.0
|
|
offset_right = 633.0
|
|
offset_bottom = 50.0
|
|
value = 80.0
|
|
fill_mode = 1
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
texture_under = ExtResource("5_fa5wd")
|
|
texture_over = ExtResource("6_gxbv2")
|
|
texture_progress = ExtResource("5_fa5wd")
|
|
tint_under = Color(0.411765, 0, 0, 1)
|
|
tint_over = Color(0, 0, 0, 1)
|
|
tint_progress = Color(1, 0, 0, 1)
|
|
script = ExtResource("7_po066")
|
|
|
|
[node name="RhsStamina" type="TextureProgressBar" parent="."]
|
|
offset_left = 373.0
|
|
offset_top = 51.0
|
|
offset_right = 633.0
|
|
offset_bottom = 61.0
|
|
value = 80.0
|
|
fill_mode = 1
|
|
nine_patch_stretch = true
|
|
stretch_margin_left = 3
|
|
stretch_margin_top = 3
|
|
stretch_margin_right = 3
|
|
stretch_margin_bottom = 3
|
|
texture_under = ExtResource("5_fa5wd")
|
|
texture_over = ExtResource("6_gxbv2")
|
|
texture_progress = ExtResource("5_fa5wd")
|
|
tint_under = Color(0.411765, 0.411765, 0, 1)
|
|
tint_over = Color(0, 0, 0, 1)
|
|
tint_progress = Color(1, 1, 0, 1)
|
|
script = ExtResource("7_po066")
|
|
|
|
[node name="CountdownLabel" type="Label" parent="."]
|
|
offset_left = 307.0
|
|
offset_top = 26.0
|
|
offset_right = 331.0
|
|
offset_bottom = 49.0
|
|
text = "10"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
clip_text = true
|
|
script = ExtResource("8_nagyd")
|
|
|
|
[connection signal="next_round" from="." to="LhsFighter" method="_on_next_round"]
|
|
[connection signal="next_round" from="." to="RhsFighter" method="_on_next_round"]
|
|
[connection signal="next_round" from="." to="CountdownLabel" method="_on_next_round"]
|
|
[connection signal="animation_finished" from="Background/AnimationPlayer" to="Background/AnimationPlayer" method="_on_animation_finished"]
|
|
[connection signal="actions_done" from="LhsFighter" to="." method="_on_lhs_fighter_actions_done"]
|
|
[connection signal="deal_damage" from="LhsFighter" to="RhsFighter" method="_take_damage"]
|
|
[connection signal="health_changed" from="LhsFighter" to="LhsHp" method="_on_value_changed"]
|
|
[connection signal="stamina_changed" from="LhsFighter" to="LhsStamina" method="_on_value_changed"]
|
|
[connection signal="actions_done" from="RhsFighter" to="." method="_on_rhs_fighter_actions_done"]
|
|
[connection signal="deal_damage" from="RhsFighter" to="LhsFighter" method="_take_damage"]
|
|
[connection signal="health_changed" from="RhsFighter" to="RhsHp" method="_on_value_changed"]
|
|
[connection signal="stamina_changed" from="RhsFighter" to="RhsStamina" method="_on_value_changed"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|