tcg/demo_game.tscn

278 lines
7.8 KiB
Text
Raw Normal View History

2025-01-26 01:58:35 +07:00
[gd_scene load_steps=12 format=3 uid="uid://l2ehohbd1xhk"]
2025-01-25 11:57:55 +07:00
[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 22:35:11 +07:00
[ext_resource type="Resource" path="res://data/cards/monster/capytain.tres" id="3_we1tk"]
2025-01-25 18:40:14 +07:00
[ext_resource type="Resource" uid="uid://4eod3m0vc5a8" path="res://data/cards/support/potion.tres" id="4_kkhfk"]
2025-01-26 01:58:35 +07:00
[ext_resource type="Resource" uid="uid://deo8mj887rfx1" path="res://data/cards/monster/axoluna.tres" id="5_3cm5x"]
[ext_resource type="PackedScene" uid="uid://bhrelvt51cbp2" path="res://ui/card_template/monster_card.tscn" id="7_4ah45"]
[ext_resource type="PackedScene" uid="uid://b60vuykleugjn" path="res://ui/card_template/skip_card.tscn" id="7_skjyk"]
[ext_resource type="PackedScene" uid="uid://dg5amjm1gqi06" path="res://ui/card_template/support_card_green.tscn" id="8_dytl5"]
[ext_resource type="PackedScene" uid="uid://cds50kwwhlgam" path="res://ui/card_template/support_card_red.tscn" id="9_cabcc"]
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")
2025-01-25 18:47:56 +07:00
player_1_deck = Array[ExtResource("2_xuft0")]([ExtResource("3_we1tk"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk"), ExtResource("5_3cm5x")])
player_2_deck = Array[ExtResource("2_xuft0")]([ExtResource("5_3cm5x"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk"), ExtResource("4_kkhfk"), ExtResource("3_we1tk")])
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="Own" type="Control" parent="." node_paths=PackedStringArray("deck", "energy_label")]
2025-01-25 11:57:55 +07:00
layout_mode = 1
2025-01-26 01:58:35 +07:00
anchor_top = 0.5
2025-01-25 11:57:55 +07:00
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
2025-01-26 01:58:35 +07:00
grow_vertical = 2
2025-01-25 11:57:55 +07:00
script = ExtResource("2_w4tnt")
deck = NodePath("Hand")
2025-01-26 01:58:35 +07:00
energy_label = NodePath("EnergyLabel")
skip_card_prefab = ExtResource("7_skjyk")
support_red_card_prefab = ExtResource("9_cabcc")
support_green_card_prefab = ExtResource("8_dytl5")
monster_card_prefab = ExtResource("7_4ah45")
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="MonsterCard" parent="Own" instance=ExtResource("7_4ah45")]
custom_minimum_size = Vector2(220, 330)
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 0.0
offset_left = -110.0
offset_top = 20.0
offset_right = 110.0
offset_bottom = 350.0
grow_vertical = 1
pivot_offset = Vector2(110, 0)
2025-01-25 11:57:55 +07:00
size_flags_horizontal = 4
2025-01-26 01:58:35 +07:00
size_flags_vertical = 4
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="Support1GreenCard" parent="Own" instance=ExtResource("8_dytl5")]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -310.0
offset_top = 75.0
offset_right = -90.0
offset_bottom = 395.0
grow_horizontal = 2
pivot_offset = Vector2(110, 0)
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="Support2GreenCard" parent="Own" instance=ExtResource("8_dytl5")]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = 90.0
offset_top = 75.0
offset_right = 310.0
offset_bottom = 395.0
grow_horizontal = 2
pivot_offset = Vector2(110, 0)
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="Support2RedCard" parent="Own" instance=ExtResource("9_cabcc")]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = 90.0
offset_top = 75.0
offset_right = 310.0
offset_bottom = 395.0
grow_horizontal = 2
pivot_offset = Vector2(110, 0)
2025-01-25 11:57:55 +07:00
2025-01-26 01:58:35 +07:00
[node name="EnergyLabel" type="Label" parent="Own"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -23.0
offset_right = 1152.0
grow_vertical = 0
2025-01-25 11:57:55 +07:00
text = "Energy:"
[node name="Hand" type="HBoxContainer" parent="Own"]
2025-01-26 01:58:35 +07:00
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -240.0
offset_bottom = 130.0
grow_horizontal = 2
grow_vertical = 0
pivot_offset = Vector2(0, 150)
2025-01-25 11:57:55 +07:00
alignment = 1
2025-01-26 01:58:35 +07:00
[node name="SkipCard" parent="Own/Hand" instance=ExtResource("7_skjyk")]
2025-01-25 11:57:55 +07:00
layout_mode = 2
2025-01-26 01:58:35 +07:00
[node name="MonsterCard" parent="Own/Hand" instance=ExtResource("7_4ah45")]
2025-01-25 11:57:55 +07:00
layout_mode = 2
2025-01-26 01:58:35 +07:00
[node name="CardBase" parent="Own/Hand" instance=ExtResource("8_dytl5")]
2025-01-25 11:57:55 +07:00
layout_mode = 2
2025-01-26 01:58:35 +07:00
[node name="CardBase2" parent="Own/Hand" instance=ExtResource("9_cabcc")]
layout_mode = 2
[node name="IncomingDamageLabel" type="Label" parent="Own"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -83.5
offset_top = 300.0
offset_right = 83.5
offset_bottom = 323.0
grow_horizontal = 2
text = "Incoming Damage: 0"
horizontal_alignment = 1
[node name="Opponent" type="Control" parent="." node_paths=PackedStringArray("deck", "energy_label")]
2025-01-25 11:57:55 +07:00
layout_mode = 1
anchor_right = 1.0
2025-01-26 01:58:35 +07:00
anchor_bottom = 0.5
2025-01-25 11:57:55 +07:00
grow_horizontal = 2
2025-01-26 01:58:35 +07:00
grow_vertical = 2
2025-01-25 11:57:55 +07:00
script = ExtResource("2_w4tnt")
player_id = 1
deck = NodePath("Hand")
energy_label = NodePath("EnergyLabel")
2025-01-26 01:58:35 +07:00
[node name="MonsterCard" parent="Opponent" instance=ExtResource("7_4ah45")]
custom_minimum_size = Vector2(220, 330)
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
offset_left = -110.0
offset_top = -350.0
offset_right = 110.0
offset_bottom = -20.0
grow_vertical = 0
pivot_offset = Vector2(110, 330)
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Support1GreenCard" parent="Opponent" instance=ExtResource("8_dytl5")]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -310.0
offset_top = -465.0
offset_right = -90.0
offset_bottom = -145.0
grow_horizontal = 2
grow_vertical = 0
pivot_offset = Vector2(110, 320)
[node name="Support2GreenCard" parent="Opponent" instance=ExtResource("8_dytl5")]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 90.0
offset_top = -465.0
offset_right = 310.0
offset_bottom = -145.0
grow_horizontal = 2
grow_vertical = 0
pivot_offset = Vector2(110, 320)
[node name="Support2RedCard" parent="Opponent" instance=ExtResource("9_cabcc")]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 90.0
offset_top = -465.0
offset_right = 310.0
offset_bottom = -145.0
grow_horizontal = 2
grow_vertical = 0
pivot_offset = Vector2(110, 320)
2025-01-25 11:57:55 +07:00
[node name="Hand" type="HBoxContainer" parent="Opponent"]
2025-01-26 01:58:35 +07:00
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 31.0
grow_horizontal = 2
2025-01-25 11:57:55 +07:00
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
2025-01-26 01:58:35 +07:00
offset_top = 35.0
offset_right = 1152.0
offset_bottom = 58.0
2025-01-25 11:57:55 +07:00
text = "Energy:"
2025-01-26 01:58:35 +07:00
[node name="IncomingDamageLabel" type="Label" parent="Opponent"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -83.5
offset_top = -325.0
offset_right = 83.5
offset_bottom = -302.0
grow_horizontal = 2
grow_vertical = 0
text = "Incoming Damage: 0"
horizontal_alignment = 1
2025-01-25 11:57:55 +07:00
[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"]