More positioning
This commit is contained in:
parent
9701cc9e61
commit
b13bc3a7bb
10
game.c
10
game.c
@ -56,7 +56,7 @@ void initialize_game(Game *g) {
|
|||||||
g->cards[i] = (Card) { i, t, rt, month, { 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.end_time = 0.;
|
||||||
g->cards[i].move.position = &g->cards[i].position;
|
g->cards[i].move.position = &g->cards[i].position;
|
||||||
g->cards[i].move.destination = (Vector2) { 800, 300 };
|
g->cards[i].move.destination = (Vector2) { 800, 400 };
|
||||||
g->deck.cards[i] = &g->cards[i];
|
g->deck.cards[i] = &g->cards[i];
|
||||||
g->deck.count++;
|
g->deck.count++;
|
||||||
}
|
}
|
||||||
@ -64,16 +64,16 @@ void initialize_game(Game *g) {
|
|||||||
shuffle_hand(&g->deck);
|
shuffle_hand(&g->deck);
|
||||||
|
|
||||||
g->player_hand.count = 0;
|
g->player_hand.count = 0;
|
||||||
g->player_hand.position = (Vector2) { 300, 550 };
|
g->player_hand.position = (Vector2) { 300, 600 };
|
||||||
g->player_hand.display_type = HAND_DISPLAY_ROW;
|
g->player_hand.display_type = HAND_DISPLAY_ROW;
|
||||||
g->right_hand.count = 0;
|
g->right_hand.count = 0;
|
||||||
g->right_hand.position = (Vector2) { 20, 100 };
|
g->right_hand.position = (Vector2) { 50, 125 };
|
||||||
g->right_hand.display_type = HAND_DISPLAY_ROW;
|
g->right_hand.display_type = HAND_DISPLAY_ROW;
|
||||||
g->left_hand.count = 0;
|
g->left_hand.count = 0;
|
||||||
g->left_hand.position = (Vector2) { 600, 100 };
|
g->left_hand.position = (Vector2) { 750, 125 };
|
||||||
g->left_hand.display_type = HAND_DISPLAY_ROW;
|
g->left_hand.display_type = HAND_DISPLAY_ROW;
|
||||||
g->field.count = 0;
|
g->field.count = 0;
|
||||||
g->field.position = (Vector2) { 400, 250 };
|
g->field.position = (Vector2) { 400, 300 };
|
||||||
g->field.display_type = HAND_DISPLAY_FIELD;
|
g->field.display_type = HAND_DISPLAY_FIELD;
|
||||||
|
|
||||||
strcpy(teyaku_calculation, "");
|
strcpy(teyaku_calculation, "");
|
||||||
|
2
main.c
2
main.c
@ -13,7 +13,7 @@ Texture2D cards_texture;
|
|||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
InitWindow(1200, 700, "Hanafuda Hachi-Hachi");
|
InitWindow(1400, 900, "Hanafuda Hachi-Hachi");
|
||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
|
||||||
Game g;
|
Game g;
|
||||||
|
Loading…
Reference in New Issue
Block a user