Initialize cards w correct position
This commit is contained in:
		
							parent
							
								
									c3094a9a5d
								
							
						
					
					
						commit
						371feff5fe
					
				
							
								
								
									
										5
									
								
								game.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								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, ""); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user