35 lines
776 B
C
35 lines
776 B
C
<<<<<<< HEAD
|
|
#ifndef DRAW_H
|
|
#define DRAW_H
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
// Define the size of your tiles in pixels
|
|
#define TILE_SIZE 32
|
|
#include "data.h"
|
|
|
|
// Function prototype for drawing game data
|
|
void drawGameData(SDL_Renderer *renderer, const GameData *gameData, SDL_Texture *tileTexture, SDL_Texture *unitTexture, SDL_Texture *buildingTexture);
|
|
|
|
#endif /* DRAW_H */
|
|
=======
|
|
#define MAP_SIZE 96
|
|
|
|
#define TILE_HEIGHT 30
|
|
#define TILE_WIDTH 60
|
|
|
|
#define MAP_RENDER_SIZE 24
|
|
|
|
#define MAP_RENDER_OFFSET_X ((SCREEN_WIDTH - (TILE_WIDTH * MAP_RENDER_SIZE)) / 2)
|
|
#define MAP_RENDER_OFFSET_Y 425
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
int sx;
|
|
int sy;
|
|
AtlasImage *texture;
|
|
} ISOObject;
|
|
|
|
>>>>>>> 8e3d2ca (add game structure)
|