Upload files to "/"
This commit is contained in:
parent
2fed013797
commit
9a90d89899
18
casuta.tscn
Normal file
18
casuta.tscn
Normal file
|
@ -0,0 +1,18 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://dnowl17kc1jld"]
|
||||
|
||||
[ext_resource type="Script" path="res://căsuță.gd" id="1_k8awj"]
|
||||
|
||||
[node name="Căsuță" type="ColorRect"]
|
||||
custom_minimum_size = Vector2(95, 95)
|
||||
size_flags_horizontal = 0
|
||||
color = Color(0.427451, 0.0588235, 0.0666667, 1)
|
||||
script = ExtResource("1_k8awj")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(1, 1, 1, 0)
|
144
main.tscn
Normal file
144
main.tscn
Normal file
|
@ -0,0 +1,144 @@
|
|||
[gd_scene load_steps=20 format=3 uid="uid://d3fe3x8i4thex"]
|
||||
|
||||
[ext_resource type="Script" path="res://Node.gd" id="1_ox6fu"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsgf3iy1cj7vd" path="res://pion_alb.tscn" id="2_xv60o"]
|
||||
[ext_resource type="PackedScene" uid="uid://dwmjduf28jj5n" path="res://cadran_negru.tscn" id="3_j77pi"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkt75q4kxr7p8" path="res://cadran_alb.tscn" id="4_b62p5"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxfkk8jsqfxmd" path="res://pion_negru.tscn" id="5_5yycy"]
|
||||
[ext_resource type="PackedScene" uid="uid://8obda0sgowyv" path="res://tabla.tscn" id="5_f6dqy"]
|
||||
[ext_resource type="PackedScene" uid="uid://gmt78c6d81ji" path="res://tura_neagra.tscn" id="6_yq2py"]
|
||||
[ext_resource type="PackedScene" uid="uid://xdp45v64r68w" path="res://cal_negru.tscn" id="7_j0xno"]
|
||||
[ext_resource type="PackedScene" uid="uid://cyfend41hs8ql" path="res://nebun_negru.tscn" id="8_2exk2"]
|
||||
[ext_resource type="PackedScene" uid="uid://o3bg6map6qiy" path="res://regina_neagra.tscn" id="9_0yaaj"]
|
||||
[ext_resource type="PackedScene" uid="uid://dk20l6un5j1js" path="res://rege_negru.tscn" id="10_8ujrs"]
|
||||
[ext_resource type="PackedScene" uid="uid://c1r5wv0y8qcgw" path="res://tura_alba.tscn" id="11_6mmtq"]
|
||||
[ext_resource type="PackedScene" uid="uid://4v5ydw026gft" path="res://cal_alb.tscn" id="12_0dsso"]
|
||||
[ext_resource type="PackedScene" uid="uid://c5i7opo0wjkko" path="res://nebun_alb.tscn" id="13_40iom"]
|
||||
[ext_resource type="PackedScene" uid="uid://bpd3bavr13asa" path="res://regina_alba.tscn" id="14_cfknb"]
|
||||
[ext_resource type="PackedScene" uid="uid://d2kf2x8c3ill8" path="res://rege_alb.tscn" id="15_dxfeq"]
|
||||
[ext_resource type="PackedScene" uid="uid://c2leb3ngffhxx" path="res://meniu_game_over.tscn" id="17_v0e7j"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0k0a0"]
|
||||
bg_color = Color(0.0177324, 0.0177324, 0.0177324, 1)
|
||||
border_width_left = 5
|
||||
border_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_y8083"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
border_width_left = 5
|
||||
border_width_top = 5
|
||||
border_width_right = 5
|
||||
border_width_bottom = 5
|
||||
border_color = Color(0.783523, 0.783523, 0.783523, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
script = ExtResource("1_ox6fu")
|
||||
pion_alb_scene = ExtResource("2_xv60o")
|
||||
pion_negru_scene = ExtResource("5_5yycy")
|
||||
cadran_negru_scene = ExtResource("3_j77pi")
|
||||
cadran_alb_scene = ExtResource("4_b62p5")
|
||||
tura_neagra_scene = ExtResource("6_yq2py")
|
||||
cal_negru_scene = ExtResource("7_j0xno")
|
||||
nebun_negru_scene = ExtResource("8_2exk2")
|
||||
regina_neagra_scene = ExtResource("9_0yaaj")
|
||||
rege_negru_scene = ExtResource("10_8ujrs")
|
||||
tura_alba_scene = ExtResource("11_6mmtq")
|
||||
cal_alb_scene = ExtResource("12_0dsso")
|
||||
nebun_alb_scene = ExtResource("13_40iom")
|
||||
regina_alba_scene = ExtResource("14_cfknb")
|
||||
rege_alb_scene = ExtResource("15_dxfeq")
|
||||
|
||||
[node name="Randuri" parent="." instance=ExtResource("5_f6dqy")]
|
||||
|
||||
[node name="SidePanel" type="Panel" parent="."]
|
||||
custom_minimum_size = Vector2(400, 788)
|
||||
anchors_preset = 11
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_0k0a0")
|
||||
|
||||
[node name="LabelPlayer" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(400, 100)
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -400.0
|
||||
offset_top = -389.0
|
||||
offset_bottom = -251.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "Următorul jucător:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="LabelPiesa" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(400, 100)
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -400.0
|
||||
offset_top = -197.0
|
||||
offset_bottom = -59.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = "Piesă selectată:"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="LabelJucator" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(400, 0)
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -400.0
|
||||
offset_top = -306.5
|
||||
offset_bottom = -249.5
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 41
|
||||
text = "Alb"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PanelPiesa" type="Panel" parent="."]
|
||||
custom_minimum_size = Vector2(150, 150)
|
||||
offset_left = 910.0
|
||||
offset_top = 320.0
|
||||
offset_right = 1060.0
|
||||
offset_bottom = 470.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_y8083")
|
||||
|
||||
[node name="LabelNumePiesa" type="Label" parent="."]
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -400.0
|
||||
offset_top = 69.0
|
||||
offset_bottom = 119.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="MeniuGameOver" parent="." instance=ExtResource("17_v0e7j")]
|
||||
process_mode = 2
|
||||
|
||||
[connection signal="restart" from="MeniuGameOver" to="." method="_on_meniu_game_over_restart"]
|
5
meniu_game_over.gd
Normal file
5
meniu_game_over.gd
Normal file
|
@ -0,0 +1,5 @@
|
|||
extends CanvasLayer
|
||||
signal restart
|
||||
|
||||
func _on_buton_restart_pressed():
|
||||
restart.emit()
|
79
meniu_game_over.tscn
Normal file
79
meniu_game_over.tscn
Normal file
|
@ -0,0 +1,79 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://c2leb3ngffhxx"]
|
||||
|
||||
[ext_resource type="Script" path="res://meniu_game_over.gd" id="1_c5pyj"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_g1t52"]
|
||||
bg_color = Color(0.140447, 0.140447, 0.140447, 1)
|
||||
border_width_left = 5
|
||||
border_width_top = 5
|
||||
border_width_right = 5
|
||||
border_width_bottom = 5
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_cmpvw"]
|
||||
bg_color = Color(0, 0, 0, 1)
|
||||
border_width_left = 3
|
||||
border_width_top = 3
|
||||
border_width_right = 3
|
||||
border_width_bottom = 3
|
||||
corner_radius_top_left = 10
|
||||
corner_radius_top_right = 10
|
||||
corner_radius_bottom_right = 10
|
||||
corner_radius_bottom_left = 10
|
||||
|
||||
[node name="MeniuGameOver" type="CanvasLayer"]
|
||||
script = ExtResource("1_c5pyj")
|
||||
|
||||
[node name="PanouGameOver" type="Panel" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -250.0
|
||||
offset_top = -175.0
|
||||
offset_right = 250.0
|
||||
offset_bottom = 175.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_g1t52")
|
||||
|
||||
[node name="LabelCastigator" type="Label" parent="."]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -200.0
|
||||
offset_top = -81.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = -26.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 40
|
||||
text = "Player 1 a castigat!"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ButonRestart" type="Button" parent="."]
|
||||
custom_minimum_size = Vector2(175, 75)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -75.0
|
||||
offset_top = -7.5
|
||||
offset_right = 75.0
|
||||
offset_bottom = 67.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_font_sizes/font_size = 30
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_cmpvw")
|
||||
text = "Din nou?"
|
||||
|
||||
[connection signal="pressed" from="ButonRestart" to="." method="_on_buton_restart_pressed"]
|
7
nebun_alb.tscn
Normal file
7
nebun_alb.tscn
Normal file
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c5i7opo0wjkko"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b2njvbn4crfxv" path="res://Asset/nebun_alb.jpg" id="1_te6w7"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" groups=["nebuni_albi"]]
|
||||
scale = Vector2(0.6, 0.6)
|
||||
texture = ExtResource("1_te6w7")
|
Loading…
Reference in New Issue
Block a user