[gd_scene load_steps=23 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"] [ext_resource type="Resource" uid="uid://cs7q8i7bvohmj" path="res://data/cards/monster/capytain.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://deo8mj887rfx1" path="res://data/cards/monster/axoluna.tres" id="5_3cm5x"] [ext_resource type="Resource" uid="uid://bcrlaam8uq6xt" path="res://data/cards/support/lifesteal.tres" id="6_potm8"] [ext_resource type="PackedScene" uid="uid://bhrelvt51cbp2" path="res://ui/card_template/monster_card.tscn" id="7_4ah45"] [ext_resource type="Resource" uid="uid://dgxcvdo6x6kst" path="res://data/cards/support/all_out_attack.tres" id="7_nvv8k"] [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="Resource" uid="uid://be01tdq1fxlct" path="res://data/cards/support/absorb.tres" id="8_ewr4v"] [ext_resource type="PackedScene" uid="uid://cds50kwwhlgam" path="res://ui/card_template/support_card_red.tscn" id="9_cabcc"] [ext_resource type="Resource" uid="uid://dfocg5yfh22e8" path="res://data/cards/support/insurance.tres" id="9_ga5hf"] [ext_resource type="Resource" uid="uid://c0grh1y65e0f3" path="res://data/cards/support/energy_booster.tres" id="10_3rg8q"] [ext_resource type="Resource" uid="uid://2xeb6keaoabo" path="res://data/cards/support/sword_mastery.tres" id="11_seakd"] [ext_resource type="Resource" uid="uid://bmst884k0myvd" path="res://data/cards/monster/cattogato.tres" id="12_xqqfn"] [ext_resource type="Texture2D" uid="uid://b0pclmv0j0r12" path="res://assets/card_base/kertas.png" id="18_gwpy8"] [ext_resource type="Theme" uid="uid://is34t82g4jg" path="res://cards.tres" id="19_3iovu"] [ext_resource type="Texture2D" uid="uid://ch04c20lkis6j" path="res://assets/card_base/gunting.png" id="19_clnw6"] [ext_resource type="Texture2D" uid="uid://bywa8qlwvcksd" path="res://assets/card_base/batu.png" id="20_672ya"] [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("5_3cm5x"), ExtResource("6_potm8"), ExtResource("7_nvv8k"), ExtResource("8_ewr4v"), ExtResource("9_ga5hf"), ExtResource("10_3rg8q"), ExtResource("11_seakd")]) player_2_deck = Array[ExtResource("2_xuft0")]([ExtResource("12_xqqfn"), ExtResource("4_kkhfk"), ExtResource("6_potm8"), ExtResource("7_nvv8k"), ExtResource("8_ewr4v"), ExtResource("9_ga5hf"), ExtResource("10_3rg8q"), ExtResource("11_seakd"), ExtResource("5_3cm5x")]) [node name="Own" type="Control" parent="." node_paths=PackedStringArray("deck", "energy_label", "rps_button_container")] layout_mode = 1 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("2_w4tnt") deck = NodePath("Hand") 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") rps_button_container = NodePath("HBoxContainer") rps_grayed_color = Color(0.439216, 0.439216, 0.439216, 1) [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) size_flags_horizontal = 4 size_flags_vertical = 4 [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) [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) [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) [node name="EnergyLabel" type="Label" parent="Own"] layout_mode = 1 anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 offset_top = -90.0 offset_right = 1152.0 offset_bottom = -67.0 grow_vertical = 0 text = "Energy:" [node name="Hand" type="HBoxContainer" parent="Own"] layout_mode = 1 anchors_preset = 7 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 offset_left = -446.0 offset_top = -370.0 offset_right = 446.0 grow_horizontal = 2 grow_vertical = 0 pivot_offset = Vector2(0, 150) alignment = 1 [node name="SkipCard" parent="Own/Hand" instance=ExtResource("7_skjyk")] layout_mode = 2 [node name="MonsterCard" parent="Own/Hand" instance=ExtResource("7_4ah45")] layout_mode = 2 [node name="CardBase" parent="Own/Hand" instance=ExtResource("8_dytl5")] layout_mode = 2 [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="HBoxContainer" type="HBoxContainer" parent="Own"] visible = false layout_mode = 0 offset_left = 665.0 offset_top = 299.0 offset_right = 1326.0 offset_bottom = 548.0 [node name="KertasButton" type="TextureButton" parent="Own/HBoxContainer"] layout_mode = 2 texture_normal = ExtResource("18_gwpy8") [node name="GuntingButton" type="TextureButton" parent="Own/HBoxContainer"] layout_mode = 2 texture_normal = ExtResource("19_clnw6") [node name="BatuButton" type="TextureButton" parent="Own/HBoxContainer"] layout_mode = 2 texture_normal = ExtResource("20_672ya") [node name="Opponent" type="Control" parent="." node_paths=PackedStringArray("deck", "energy_label")] layout_mode = 1 anchor_right = 1.0 anchor_bottom = 0.5 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("2_w4tnt") player_id = 1 deck = NodePath("Hand") energy_label = NodePath("EnergyLabel") [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) [node name="Hand" type="HBoxContainer" parent="Opponent"] layout_mode = 1 anchors_preset = 10 anchor_right = 1.0 offset_bottom = 31.0 grow_horizontal = 2 alignment = 1 [node name="EnergyLabel" type="Label" parent="Opponent"] layout_mode = 2 offset_top = 35.0 offset_right = 1152.0 offset_bottom = 58.0 text = "Energy:" [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 [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")] [node name="PhaseInfo" type="VBoxContainer" parent="."] unique_name_in_owner = true layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = 347.0 offset_top = -102.0 offset_right = 864.0 offset_bottom = 106.0 grow_horizontal = 2 grow_vertical = 2 [node name="PhaseHeader" type="VBoxContainer" parent="PhaseInfo"] layout_mode = 2 theme_override_constants/separation = 24 alignment = 2 [node name="Summon" type="Label" parent="PhaseInfo/PhaseHeader"] layout_mode = 2 theme = ExtResource("19_3iovu") theme_override_font_sizes/font_size = 24 text = "Summon" [node name="Support 1" type="Label" parent="PhaseInfo/PhaseHeader"] layout_mode = 2 theme = ExtResource("19_3iovu") theme_override_font_sizes/font_size = 24 text = "Support (1)" [node name="RPS" type="Label" parent="PhaseInfo/PhaseHeader"] layout_mode = 2 theme = ExtResource("19_3iovu") theme_override_font_sizes/font_size = 24 text = "Rock, Paper, Scissors" [node name="Support 2" type="Label" parent="PhaseInfo/PhaseHeader"] layout_mode = 2 theme = ExtResource("19_3iovu") theme_override_font_sizes/font_size = 24 text = "Support (2)" [node name="Win-Lose-Tie" type="Label" parent="."] visible = false layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -365.0 offset_top = -215.0 offset_right = 365.0 offset_bottom = 215.0 grow_horizontal = 2 grow_vertical = 2 theme = ExtResource("19_3iovu") theme_override_font_sizes/font_size = 52 text = "YOU WON!" horizontal_alignment = 1 vertical_alignment = 1 [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="button_down" from="Own/HBoxContainer/KertasButton" to="Own" method="_on_kertas_button_button_down"] [connection signal="button_down" from="Own/HBoxContainer/GuntingButton" to="Own" method="_on_gunting_button_button_down"] [connection signal="button_down" from="Own/HBoxContainer/BatuButton" to="Own" method="_on_batu_button_button_down"] [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"]