From 371feff5fe2601e8e676c5a1a240e50cb860ac5f Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Mon, 3 Feb 2025 20:12:38 -0500 Subject: [PATCH] Initialize cards w correct position --- game.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game.c b/game.c index 6f72e0f..f0be7a3 100644 --- a/game.c +++ b/game.c @@ -49,9 +49,10 @@ void initialize_game(Game *g) { case 41: t = ANIMAL; break; } - g->cards[i] = (Card) { i, t, rt, month, (Vector2) { 800, 100 }, false, false }; + g->cards[i] = (Card) { i, t, rt, month, { 800, 100 }, false, false }; g->cards[i].move.end_time = 0.; g->cards[i].move.position = &g->cards[i].position; + g->cards[i].move.destination = (Vector2) { 800, 200 }; g->deck.cards[i] = &g->cards[i]; g->deck.count++; } @@ -63,7 +64,7 @@ void initialize_game(Game *g) { g->right_hand.count = 0; g->right_hand.position = (Vector2) { 20, 100 }; g->left_hand.count = 0; - g->left_hand.position = (Vector2) { 20, 300 }; + g->left_hand.position = (Vector2) { 20, 250 }; strcpy(teyaku_calculation, ""); strcpy(dekiyaku_calculation, "");