fix/func: added beginnings of turn winning function. Fixed "Card_Container"s not appearing & dissapearing properly

This commit is contained in:
Aspergerli
2026-04-02 13:05:44 +02:00
parent 5d937e42d7
commit 4a05d2f4bd
10 changed files with 213 additions and 29 deletions
-14
View File
@@ -1,14 +0,0 @@
extends Pile
signal played
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
func play_check():
print("waiting")
enable_drop_zone = true
while true:
if get_top_cards(1) != null:
played.emit()
break
-1
View File
@@ -1 +0,0 @@
uid://be2xbeq4mjtyi
+3 -9
View File
@@ -7,7 +7,6 @@
[ext_resource type="Curve" uid="uid://bpxa7v4vk7pod" path="res://resources/Hand_Curve.tres" id="5_kdjyk"]
[ext_resource type="Curve" uid="uid://c2d322obqbcgc" path="res://resources/Hand_Curve_Vert.tres" id="6_ikr1a"]
[ext_resource type="Script" uid="uid://6ams8uvg43gu" path="res://addons/card-framework/pile.gd" id="7_rwigh"]
[ext_resource type="Script" uid="uid://be2xbeq4mjtyi" path="res://scenes/player_1_play_pile.gd" id="8_el68r"]
[ext_resource type="Texture2D" uid="uid://jxi7my6yp71x" path="res://icon.svg" id="8_waqni"]
[ext_resource type="Texture2D" uid="uid://besq7oa4a37mb" path="res://icon_red_background.webp" id="9_ggwjq"]
[ext_resource type="Curve" uid="uid://ddxsxuabgpk7w" path="res://resources/Hand_Curve_invert.tres" id="10_kdjyk"]
@@ -65,17 +64,14 @@ hand_rotation_curve = ExtResource("5_kdjyk")
hand_vertical_curve = ExtResource("6_ikr1a")
metadata/_custom_type_script = "uid://dj46jo3lfbclo"
[node name="Player1PlayPile" type="Control" parent="CardManager" unique_id=1899485437]
[node name="Player1PlayPile" type="Control" parent="CardManager" unique_id=2062119966]
anchors_preset = 0
offset_left = 790.0
offset_top = 560.0
offset_right = 790.0
offset_bottom = 560.0
script = ExtResource("8_el68r")
stack_display_gap = 1
max_stack_display = 1
sensor_texture = ExtResource("8_waqni")
sensor_visibility = true
script = ExtResource("7_rwigh")
sensor_texture = ExtResource("9_ggwjq")
metadata/_custom_type_script = "uid://6ams8uvg43gu"
[node name="Team1Stiche" type="Control" parent="CardManager" unique_id=740577652]
@@ -109,9 +105,7 @@ offset_top = 560.0
offset_right = 980.0
offset_bottom = 560.0
script = ExtResource("7_rwigh")
enable_drop_zone = false
sensor_texture = SubResource("CanvasTexture_kdjyk")
sensor_visibility = true
metadata/_custom_type_script = "uid://6ams8uvg43gu"
[node name="Team2Stiche" type="Control" parent="CardManager" unique_id=561191290]