2025-01-25 11:57:55 +07:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://bgc0u117jqyr1"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://demo_game.gd" id="1_jn16u"]
|
|
|
|
|
[ext_resource type="Script" path="res://player_side.gd" id="2_w4tnt"]
|
|
|
|
|
[ext_resource type="Script" path="res://tcg/card/card.gd" id="2_xuft0"]
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cikstg43mudkn" path="res://tcg/match/match_manager.tscn" id="3_3yhrl"]
|
2025-01-25 18:40:14 +07:00
|
|
|
[ext_resource type="Resource" uid="uid://cs7q8i7bvohmj" path="res://data/cards/monster/baraga.tres" id="3_we1tk"]
|
|
|
|
|
[ext_resource type="Resource" uid="uid://4eod3m0vc5a8" path="res://data/cards/support/potion.tres" id="4_kkhfk"]
|
|
|
|
|
[ext_resource type="Resource" uid="uid://di76avwc0gn8e" path="res://data/cards/monster/taiman.tres" id="5_3cm5x"]
|
2025-01-25 11:57:55 +07:00
|
|
|
|
|
|
|
|
[node name="DemoGame" type="Control"]
|
|
|
|
|
layout_mode = 3
|
|
|
|
|
anchors_preset = 15
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
script = ExtResource("1_jn16u")
|
|
|
|
|
player_1_deck = Array[ExtResource("2_xuft0")]([ExtResource("3_we1tk"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk")])
|
|
|
|
|
player_2_deck = Array[ExtResource("2_xuft0")]([ExtResource("5_3cm5x"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk")])
|
|
|
|
|
|
|
|
|
|
[node name="Own" type="VBoxContainer" parent="." node_paths=PackedStringArray("deck", "monster_name_label", "monster_health_label", "incoming_damage_label", "energy_label")]
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 12
|
|
|
|
|
anchor_top = 1.0
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
offset_top = -131.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 0
|
|
|
|
|
alignment = 2
|
|
|
|
|
script = ExtResource("2_w4tnt")
|
|
|
|
|
deck = NodePath("Hand")
|
|
|
|
|
monster_name_label = NodePath("Monster/VBoxContainer/NameLabel")
|
|
|
|
|
monster_health_label = NodePath("Monster/VBoxContainer/HealthLabel")
|
|
|
|
|
incoming_damage_label = NodePath("Monster/VBoxContainer/IncomingDamageLabel")
|
|
|
|
|
energy_label = NodePath("HBoxContainer/EnergyLabel")
|
|
|
|
|
|
|
|
|
|
[node name="Monster" type="HBoxContainer" parent="Own"]
|
|
|
|
|
custom_minimum_size = Vector2(0, 128)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Own/Monster"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="NameLabel" type="Label" parent="Own/Monster/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Name:"
|
|
|
|
|
|
|
|
|
|
[node name="HealthLabel" type="Label" parent="Own/Monster/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Health:"
|
|
|
|
|
|
|
|
|
|
[node name="IncomingDamageLabel" type="Label" parent="Own/Monster/VBoxContainer"]
|
|
|
|
|
custom_minimum_size = Vector2(128, 0)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Incoming Damage:"
|
|
|
|
|
vertical_alignment = 2
|
|
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Own"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="EnergyLabel" type="Label" parent="Own/HBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Energy:"
|
|
|
|
|
|
|
|
|
|
[node name="Hand" type="HBoxContainer" parent="Own"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="Own/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_1"
|
|
|
|
|
|
|
|
|
|
[node name="Button2" type="Button" parent="Own/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_2"
|
|
|
|
|
|
|
|
|
|
[node name="Button3" type="Button" parent="Own/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_3"
|
|
|
|
|
|
|
|
|
|
[node name="Opponent" type="VBoxContainer" parent="." node_paths=PackedStringArray("deck", "monster_name_label", "monster_health_label", "incoming_damage_label", "energy_label")]
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 10
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
|
offset_bottom = 190.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
script = ExtResource("2_w4tnt")
|
|
|
|
|
player_id = 1
|
|
|
|
|
deck = NodePath("Hand")
|
|
|
|
|
monster_name_label = NodePath("Monster/VBoxContainer/NameLabel")
|
|
|
|
|
monster_health_label = NodePath("Monster/VBoxContainer/HealthLabel")
|
|
|
|
|
incoming_damage_label = NodePath("Monster/VBoxContainer/IncomingDamageLabel")
|
|
|
|
|
energy_label = NodePath("EnergyLabel")
|
|
|
|
|
|
|
|
|
|
[node name="Hand" type="HBoxContainer" parent="Opponent"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="Button" type="Button" parent="Opponent/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_1"
|
|
|
|
|
|
|
|
|
|
[node name="Button2" type="Button" parent="Opponent/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_2"
|
|
|
|
|
|
|
|
|
|
[node name="Button3" type="Button" parent="Opponent/Hand"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "CARD_3"
|
|
|
|
|
|
|
|
|
|
[node name="EnergyLabel" type="Label" parent="Opponent"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Energy:"
|
|
|
|
|
|
|
|
|
|
[node name="Monster" type="HBoxContainer" parent="Opponent"]
|
|
|
|
|
custom_minimum_size = Vector2(0, 128)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="Opponent/Monster"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="NameLabel" type="Label" parent="Opponent/Monster/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Name: "
|
|
|
|
|
|
|
|
|
|
[node name="HealthLabel" type="Label" parent="Opponent/Monster/VBoxContainer"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Health:"
|
|
|
|
|
|
|
|
|
|
[node name="IncomingDamageLabel" type="Label" parent="Opponent/Monster/VBoxContainer"]
|
|
|
|
|
custom_minimum_size = Vector2(128, 0)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
text = "Incoming Damage:"
|
|
|
|
|
vertical_alignment = 2
|
|
|
|
|
|
|
|
|
|
[node name="StartGameButton" type="Button" parent="."]
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 8
|
|
|
|
|
anchor_left = 0.5
|
|
|
|
|
anchor_top = 0.5
|
|
|
|
|
anchor_right = 0.5
|
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
|
offset_left = -132.0
|
|
|
|
|
offset_top = -59.5
|
|
|
|
|
offset_right = 132.0
|
|
|
|
|
offset_bottom = 59.5
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
text = "Start Game"
|
|
|
|
|
|
|
|
|
|
[node name="MatchManager" parent="." instance=ExtResource("3_3yhrl")]
|
|
|
|
|
|
|
|
|
|
[connection signal="play_card" from="Own" to="." method="_on_own_play_card"]
|
|
|
|
|
[connection signal="rps_move" from="Own" to="." method="_on_own_rps_move"]
|
|
|
|
|
[connection signal="play_card" from="Opponent" to="." method="_on_opponent_play_card"]
|
|
|
|
|
[connection signal="rps_move" from="Opponent" to="." method="_on_opponent_rps_move"]
|
|
|
|
|
[connection signal="button_up" from="StartGameButton" to="." method="_on_start_game_button_button_up"]
|