2024-03-30 22:07:23 +01:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://dmahmxghpm47w"]
|
2024-03-27 18:02:45 +01:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://game.gd" id="1_g1ie7"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://dvlk7imglgpms" path="res://board/board.tscn" id="1_ym80r"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://do2vfb2cj7fk" path="res://assets/sprites.png" id="3_0333r"]
|
2024-03-30 22:07:23 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://61xrksg1k2ek" path="res://assets/stein.png" id="4_evbl8"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cr37od6sevrmd" path="res://assets/scissors.png" id="5_clubr"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b1vi81hwhys1p" path="res://assets/paper.png" id="6_g740b"]
|
2024-03-27 18:02:45 +01:00
|
|
|
|
|
|
|
[node name="Game" type="Node2D"]
|
|
|
|
script = ExtResource("1_g1ie7")
|
|
|
|
|
2024-03-30 22:07:23 +01:00
|
|
|
[node name="Numbers" parent="." instance=ExtResource("1_ym80r")]
|
2024-03-29 19:36:21 +01:00
|
|
|
position = Vector2(375, 232)
|
2024-03-30 22:07:23 +01:00
|
|
|
layer_0/tile_data = PackedInt32Array(65533, 1, 3, 131069, 65537, 3, 196605, 131073, 3, 262141, 196609, 3, 327677, 65537, 4, 393213, 131073, 4, -2, 1, 3, -1, 65537, 3, -65536, 131073, 3, -65535, 196609, 3, -65534, 65537, 4, -65533, 131073, 4)
|
2024-03-27 20:39:10 +01:00
|
|
|
|
2024-03-27 18:02:45 +01:00
|
|
|
[node name="Board" parent="." instance=ExtResource("1_ym80r")]
|
2024-03-29 19:36:21 +01:00
|
|
|
position = Vector2(375, 232)
|
2024-03-27 20:39:10 +01:00
|
|
|
layer_0/tile_data = PackedInt32Array(65537, 1, 0, 131073, 1, 0, 131074, 1, 0, 0, 1, 0, 65536, 1, 0, 131072, 1, 0, 1, 1, 0, 2, 1, 0, 65538, 1, 0, 65534, 1, 0, 131070, 1, 0, 131071, 1, 0, 196607, 1, 0, 65535, 1, 0, 196606, 1, 0, 262142, 1, 0, 327678, 1, 0, 393214, 1, 0, 393215, 1, 0, 327680, 1, 0, 327681, 1, 0, 327682, 1, 0, 327683, 1, 0, 262147, 1, 0, 196611, 1, 0, 131075, 1, 0, 65539, 1, 0, 3, 1, 0, 196610, 1, 0, 262146, 1, 0, 262145, 1, 0, 196609, 1, 0, 262144, 1, 0, 196608, 1, 0, 327679, 1, 0, 262143, 1, 0)
|
2024-03-27 18:02:45 +01:00
|
|
|
|
|
|
|
[node name="GUI" type="Node2D" parent="."]
|
|
|
|
|
|
|
|
[node name="Title" type="Label" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 834.0
|
|
|
|
offset_top = 2.0
|
|
|
|
offset_right = 1215.0
|
|
|
|
offset_bottom = 74.0
|
2024-03-28 00:16:22 +01:00
|
|
|
theme_override_font_sizes/font_size = 40
|
2024-03-27 20:39:10 +01:00
|
|
|
text = "Tic Tac Toe Extreme"
|
2024-03-27 18:02:45 +01:00
|
|
|
|
|
|
|
[node name="NextPlayer" type="Sprite2D" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
position = Vector2(1112, 240)
|
2024-03-29 19:36:21 +01:00
|
|
|
scale = Vector2(1.0075, 0.995)
|
2024-03-27 18:02:45 +01:00
|
|
|
texture = ExtResource("3_0333r")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(0, 100, 100, 100)
|
|
|
|
|
|
|
|
[node name="NextPlayerLabel" type="Label" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 875.0
|
|
|
|
offset_top = 208.5
|
|
|
|
offset_right = 1005.0
|
|
|
|
offset_bottom = 277.5
|
2024-03-27 18:02:45 +01:00
|
|
|
size_flags_horizontal = 4
|
2024-03-28 00:16:22 +01:00
|
|
|
theme_override_font_sizes/font_size = 45
|
2024-03-27 18:02:45 +01:00
|
|
|
text = "Next:"
|
|
|
|
|
|
|
|
[node name="WonPlayer" type="Sprite2D" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
position = Vector2(1112, 336)
|
2024-03-29 19:36:21 +01:00
|
|
|
scale = Vector2(0.999999, 0.995)
|
2024-03-27 18:02:45 +01:00
|
|
|
texture = ExtResource("3_0333r")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(0, 100, 100, 100)
|
|
|
|
|
|
|
|
[node name="WonPlayerLabel" type="Label" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 877.0
|
|
|
|
offset_top = 309.5
|
|
|
|
offset_right = 1048.0
|
|
|
|
offset_bottom = 378.5
|
2024-03-27 18:02:45 +01:00
|
|
|
size_flags_horizontal = 4
|
2024-03-28 00:16:22 +01:00
|
|
|
theme_override_font_sizes/font_size = 45
|
2024-03-29 19:36:21 +01:00
|
|
|
text = "Winner:"
|
2024-03-27 18:02:45 +01:00
|
|
|
|
2024-03-28 00:16:22 +01:00
|
|
|
[node name="DiceSprite" type="Sprite2D" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
position = Vector2(1198, 498)
|
2024-03-28 00:16:22 +01:00
|
|
|
scale = Vector2(1.26596, 1.2191)
|
|
|
|
texture = ExtResource("3_0333r")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(207, 410, 85, 85)
|
|
|
|
|
2024-03-27 18:02:45 +01:00
|
|
|
[node name="RestartButton" type="Button" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 866.0
|
2024-03-30 03:50:20 +01:00
|
|
|
offset_top = 712.0
|
|
|
|
offset_right = 1096.0
|
|
|
|
offset_bottom = 832.0
|
2024-03-28 00:16:22 +01:00
|
|
|
theme_override_colors/font_color = Color(1, 0, 0, 1)
|
|
|
|
theme_override_font_sizes/font_size = 30
|
2024-03-27 18:02:45 +01:00
|
|
|
text = "Restart"
|
|
|
|
|
2024-03-28 00:16:22 +01:00
|
|
|
[node name="DiceButton" type="Button" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
offset_left = 866.0
|
|
|
|
offset_top = 440.0
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_right = 1097.0
|
2024-03-30 03:50:20 +01:00
|
|
|
offset_bottom = 560.0
|
2024-03-28 00:16:22 +01:00
|
|
|
theme_override_font_sizes/font_size = 30
|
|
|
|
text = "Würfeln"
|
|
|
|
|
2024-03-29 18:09:51 +01:00
|
|
|
[node name="Test" type="Button" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
offset_left = 1184.0
|
|
|
|
offset_top = 640.0
|
|
|
|
offset_right = 1416.0
|
|
|
|
offset_bottom = 736.0
|
|
|
|
rotation = 0.000312189
|
2024-03-29 18:09:51 +01:00
|
|
|
theme_override_font_sizes/font_size = 35
|
|
|
|
text = "Test"
|
|
|
|
|
2024-03-29 21:35:17 +01:00
|
|
|
[node name="Spin the Wheel" type="Button" parent="GUI"]
|
2024-03-30 03:50:20 +01:00
|
|
|
offset_left = 866.0
|
|
|
|
offset_top = 576.0
|
|
|
|
offset_right = 1096.0
|
|
|
|
offset_bottom = 696.0
|
|
|
|
theme_override_font_sizes/font_size = 25
|
2024-03-29 21:35:17 +01:00
|
|
|
text = "Spin the Wheel"
|
|
|
|
|
2024-03-29 18:46:53 +01:00
|
|
|
[node name="Player1Label" type="Label" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 164.0
|
|
|
|
offset_top = 45.0
|
|
|
|
offset_right = 350.0
|
|
|
|
offset_bottom = 108.0
|
2024-03-29 18:46:53 +01:00
|
|
|
theme_override_font_sizes/font_size = 45
|
|
|
|
text = "Player 1:"
|
|
|
|
|
|
|
|
[node name="Player1Sprite" type="Sprite2D" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
position = Vector2(403, 79.1)
|
|
|
|
scale = Vector2(0.767647, 0.709302)
|
2024-03-29 18:46:53 +01:00
|
|
|
texture = ExtResource("3_0333r")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(8, 108, 85, 86)
|
|
|
|
|
|
|
|
[node name="Player2Label" type="Label" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
offset_left = 498.0
|
|
|
|
offset_top = 45.1
|
|
|
|
offset_right = 684.0
|
|
|
|
offset_bottom = 108.1
|
2024-03-29 18:46:53 +01:00
|
|
|
theme_override_font_sizes/font_size = 45
|
|
|
|
text = "Player 2:"
|
|
|
|
|
|
|
|
[node name="Player2Sprite" type="Sprite2D" parent="GUI"]
|
2024-03-29 19:36:21 +01:00
|
|
|
position = Vector2(735.388, 78.0625)
|
|
|
|
scale = Vector2(0.688662, 0.696221)
|
2024-03-29 18:46:53 +01:00
|
|
|
texture = ExtResource("3_0333r")
|
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2(307, 108, 86, 86)
|
|
|
|
|
2024-03-30 03:50:20 +01:00
|
|
|
[node name="Event" type="Label" parent="GUI"]
|
|
|
|
offset_left = 312.0
|
|
|
|
offset_top = 888.0
|
|
|
|
offset_right = 517.0
|
|
|
|
offset_bottom = 957.0
|
|
|
|
theme_override_font_sizes/font_size = 50
|
|
|
|
text = "Ereignis:"
|
|
|
|
|
|
|
|
[node name="Sequenz" type="Label" parent="GUI"]
|
|
|
|
offset_left = 1256.0
|
|
|
|
offset_top = 310.0
|
|
|
|
offset_right = 2050.0
|
|
|
|
offset_bottom = 379.0
|
|
|
|
theme_override_font_sizes/font_size = 50
|
|
|
|
text = "Steine zum gewinnen: "
|
|
|
|
|
2024-03-30 22:07:23 +01:00
|
|
|
[node name="Schnick" type="Node2D" parent="."]
|
|
|
|
visible = false
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Schnick"]
|
|
|
|
offset_left = 912.0
|
|
|
|
offset_top = 64.0
|
|
|
|
offset_right = 2140.0
|
|
|
|
offset_bottom = 233.0
|
|
|
|
theme_override_font_sizes/font_size = 60
|
|
|
|
text = "Reallife Schere, Stein, Papier Minigame:
|
|
|
|
Hast du dir deinen nächsten Zug verdient?"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Stein" type="Sprite2D" parent="Schnick"]
|
|
|
|
position = Vector2(1466.1, 596)
|
|
|
|
scale = Vector2(0.4, 0.4)
|
|
|
|
texture = ExtResource("4_evbl8")
|
|
|
|
|
|
|
|
[node name="Scissors" type="Sprite2D" parent="Schnick"]
|
|
|
|
position = Vector2(738.1, 612)
|
|
|
|
scale = Vector2(0.45, 0.45)
|
|
|
|
texture = ExtResource("5_clubr")
|
|
|
|
|
|
|
|
[node name="Paper" type="Sprite2D" parent="Schnick"]
|
|
|
|
position = Vector2(2194.1, 620)
|
|
|
|
scale = Vector2(1.2, 1.2)
|
|
|
|
texture = ExtResource("6_g740b")
|
|
|
|
|
|
|
|
[node name="Gewonnen" type="Button" parent="Schnick"]
|
|
|
|
offset_left = 1104.0
|
|
|
|
offset_top = 976.0
|
|
|
|
offset_right = 1416.0
|
|
|
|
offset_bottom = 1120.0
|
|
|
|
theme_override_font_sizes/font_size = 60
|
|
|
|
text = "Ja"
|
|
|
|
|
|
|
|
[node name="Verloren" type="Button" parent="Schnick"]
|
|
|
|
offset_left = 1592.0
|
|
|
|
offset_top = 976.0
|
|
|
|
offset_right = 1904.0
|
|
|
|
offset_bottom = 1120.0
|
|
|
|
theme_override_font_sizes/font_size = 60
|
|
|
|
text = "Nein"
|
|
|
|
|
2024-03-27 18:02:45 +01:00
|
|
|
[connection signal="pressed" from="GUI/RestartButton" to="." method="_on_restart_button_pressed"]
|
2024-03-28 00:16:22 +01:00
|
|
|
[connection signal="pressed" from="GUI/DiceButton" to="." method="_on_dice_button_pressed"]
|
2024-03-29 18:09:51 +01:00
|
|
|
[connection signal="pressed" from="GUI/Test" to="." method="_on_test_pressed"]
|
2024-03-29 21:35:17 +01:00
|
|
|
[connection signal="pressed" from="GUI/Spin the Wheel" to="." method="_on_spin_the_wheel_pressed"]
|
2024-03-30 22:07:23 +01:00
|
|
|
[connection signal="pressed" from="Schnick/Gewonnen" to="." method="_on_gewonnen_pressed"]
|
|
|
|
[connection signal="pressed" from="Schnick/Verloren" to="." method="_on_verloren_pressed"]
|