sorry I broke I shit again lol

This commit is contained in:
2025-10-05 05:47:03 +02:00
parent 73af278cc1
commit be293f9d18
7 changed files with 95 additions and 74 deletions

View File

@@ -15,7 +15,7 @@ var shield_active = true;
var move_direction = Vector2.ZERO;
var target = Vector2.ZERO # The position of the player's cursor.
@export var hand;
@export var hand: Control;
var screen_size # Size of the game window.
var action_state = ActionState.None
@@ -73,18 +73,19 @@ func dash():
dash_on_cooldown = true;
func draw_card():
if drawpile.size() == 0:
shuffle_deck();
if drawpile.size() > 0 and hand.size() < hand_size:
var card = drawpile.pop_back();
hand.append(card);
if active_card_index == -1:
active_card_index = 0;
#if drawpile.size() == 0:
#shuffle_deck();
#if drawpile.size() > 0 and hand.size() < hand_size:
#var card = drawpile.pop_back();
#hand.append(card);
#if active_card_index == -1:
#active_card_index = 0;
pass
func _ready():
screen_size = get_viewport_rect().size
while (hand.size() < hand_size and drawpile.size() > 0):
draw_card();
#while (hand.size() < hand_size and drawpile.size() > 0):
#draw_card();
func _process(delta):
update_target_coords();