made the join game screen to get ready for attaching to host and also made a protocol doc
This commit is contained in:
5
battle.c
5
battle.c
@@ -17,7 +17,6 @@
|
||||
|
||||
SDL_Rect mouse_rect;
|
||||
SDL_Rect bot_rect, hand_rect;
|
||||
SDL_Point mouse_pos;
|
||||
|
||||
int check_col(int i);
|
||||
int selected_card;
|
||||
@@ -32,7 +31,6 @@ void start_battle(){
|
||||
dragging = 0;
|
||||
PRINT_M(STARTING GAME LOOP);
|
||||
|
||||
//SDL_Texture *maroon = IMG_LoadTexture(renderer, "assets/maroon.png");
|
||||
SDL_Texture *grid = IMG_LoadTexture(renderer, "assets/battle_grid.png");
|
||||
SDL_Texture *card = IMG_LoadTexture(renderer, "assets/default_card.png");
|
||||
SDL_Texture *selected = IMG_LoadTexture(renderer, "assets/selected_card.png");
|
||||
@@ -164,8 +162,7 @@ void start_battle(){
|
||||
else { selected_card = -1; }
|
||||
for(i = 0; i < hand.handsize; i++)
|
||||
{
|
||||
hand.card_rects[i].x = hand_rect.x + BOARDER_THICKNESS + ( spacing * i)
|
||||
- ((CARD_SIZE - CARD_W)>>1) ;
|
||||
hand.card_rects[i].x = hand_rect.x + BOARDER_THICKNESS + ( spacing * i);
|
||||
hand.card_rects[i].y = hand_rect.y + BOARDER_THICKNESS;
|
||||
if(check && SDL_PointInRect(&mouse_pos, &(hand.card_rects[i])))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user