feat: new cards in game

This commit is contained in:
Kenshia 2025-01-26 01:58:35 +07:00
parent 2c4e9d90f3
commit 5af462e78d
14 changed files with 700 additions and 123 deletions

View file

@ -15,16 +15,27 @@
[ext_resource type="Texture2D" uid="uid://ch04c20lkis6j" path="res://assets/card_base/gunting.png" id="13_ifoc6"]
[ext_resource type="Texture2D" uid="uid://b0pclmv0j0r12" path="res://assets/card_base/kertas.png" id="14_gm7k7"]
[node name="MonsterCard" type="Control"]
[node name="MonsterCard" type="Control" node_paths=PackedStringArray("name_label", "health_label", "energy_pip_container", "icon_texture_rect", "paper_damage", "scissors_damage", "rock_damage")]
custom_minimum_size = Vector2(220, 320)
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = -932.0
offset_bottom = -328.0
offset_right = -1700.0
offset_bottom = -760.0
grow_horizontal = 2
grow_vertical = 2
scale = Vector2(0.7, 0.7)
pivot_offset = Vector2(110, 160)
size_flags_vertical = 8
script = ExtResource("1_xddej")
name_label = NodePath("MarginContainer/MonsterNameLabel")
health_label = NodePath("MarginContainer/HealthLabel")
energy_pip_container = NodePath("MarginContainer/EnergyStarsContainer")
icon_texture_rect = NodePath("MarginContainer/TextureRect2/IconTextureRect")
paper_damage = NodePath("MarginContainer/Paper/PaperDamage")
scissors_damage = NodePath("MarginContainer/Scissors/ScissorsDamage")
rock_damage = NodePath("MarginContainer/Rock/RockDamage")
[node name="Screenshot2025-01-25211435" type="Sprite2D" parent="."]
visible = false
@ -95,7 +106,8 @@ texture = ExtResource("7_qe8a1")
expand_mode = 1
stretch_mode = 5
[node name="TextureRect" type="TextureRect" parent="MarginContainer/TextureRect2"]
[node name="IconTextureRect" type="TextureRect" parent="MarginContainer/TextureRect2"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -106,32 +118,34 @@ texture = ExtResource("7_j2i0p")
expand_mode = 1
stretch_mode = 5
[node name="EnergyStars" type="HBoxContainer" parent="MarginContainer"]
[node name="EnergyStarsContainer" type="HBoxContainer" parent="MarginContainer"]
unique_name_in_owner = true
layout_mode = 0
offset_left = 141.0
offset_top = 55.0
offset_right = 200.0
offset_bottom = 70.0
[node name="TextureRect3" type="TextureRect" parent="MarginContainer/EnergyStars"]
[node name="TextureRect3" type="TextureRect" parent="MarginContainer/EnergyStarsContainer"]
layout_mode = 2
texture = ExtResource("8_ophhb")
expand_mode = 3
stretch_mode = 5
[node name="TextureRect2" type="TextureRect" parent="MarginContainer/EnergyStars"]
[node name="TextureRect2" type="TextureRect" parent="MarginContainer/EnergyStarsContainer"]
layout_mode = 2
texture = ExtResource("8_ophhb")
expand_mode = 3
stretch_mode = 5
[node name="TextureRect" type="TextureRect" parent="MarginContainer/EnergyStars"]
[node name="TextureRect" type="TextureRect" parent="MarginContainer/EnergyStarsContainer"]
layout_mode = 2
texture = ExtResource("8_ophhb")
expand_mode = 3
stretch_mode = 5
[node name="HPNumber" type="Label" parent="MarginContainer"]
[node name="HealthLabel" type="Label" parent="MarginContainer"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
@ -146,6 +160,7 @@ text = "HP 80"
vertical_alignment = 1
[node name="MonsterNameLabel" type="Label" parent="MarginContainer"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
@ -191,6 +206,7 @@ horizontal_alignment = 1
vertical_alignment = 1
[node name="Paper" type="TextureRect" parent="MarginContainer"]
layout_mode = 0
offset_left = 109.0
offset_top = 183.0
offset_right = 222.0
@ -199,7 +215,8 @@ texture = ExtResource("14_gm7k7")
expand_mode = 1
stretch_mode = 5
[node name="HPNumber" type="Label" parent="MarginContainer/Paper"]
[node name="PaperDamage" type="Label" parent="MarginContainer/Paper"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
@ -214,6 +231,7 @@ text = "10"
vertical_alignment = 1
[node name="Scissors" type="TextureRect" parent="MarginContainer"]
layout_mode = 0
offset_left = 43.0
offset_top = 182.0
offset_right = 156.0
@ -222,7 +240,8 @@ texture = ExtResource("13_ifoc6")
expand_mode = 1
stretch_mode = 5
[node name="HPNumber" type="Label" parent="MarginContainer/Scissors"]
[node name="ScissorsDamage" type="Label" parent="MarginContainer/Scissors"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
@ -246,7 +265,8 @@ texture = ExtResource("12_a4kkh")
expand_mode = 1
stretch_mode = 5
[node name="HPNumber" type="Label" parent="MarginContainer/Rock"]
[node name="RockDamage" type="Label" parent="MarginContainer/Rock"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0