Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void HighlightAnt(Board *board)
- {
- int currentAntX = board->ant.x;
- int currentAntY = board->ant.y;
- int step = board->step;
- SDL_Color antHighlightColor = { 0x00, 0x11, 0x11 };
- SDL_SetRenderDrawColor(gameRenderer, antHighlightColor.r, antHighlightColor.g, antHighlightColor.b, antHighlightColor.a);
- int i = currentAntX - board->x;
- int j = currentAntY - board->y;
- SDL_Rect curRect = { i * step, j * step, step, step };
- SDL_RenderFillRect(gameRenderer, &curRect);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement