Some progress

This commit is contained in:
2025-05-29 22:37:44 +02:00
parent f6e59e74c7
commit d01bdbe819
11 changed files with 331 additions and 65 deletions

View File

@@ -24,13 +24,15 @@ typedef struct {
uint16_t type;
char name[20];
SDL_Texture *textures[ORIENT_DIRECTION_COUNT];
uint16_t breakTime;
} TileType;
#define TILEREGISTRY_SIZE 512
extern TileType TileRegistry[TILEREGISTRY_SIZE];
#define TYPE_BELT 0
#define TYPE_AIR 0
#define TYPE_BELT 1
typedef struct {
OrientDirection direction;
@@ -46,4 +48,6 @@ extern Tile tileMap[MAP_HEIGHT][MAP_WIDTH];
void generateTestMap();
void loadTiles(SDL_Renderer *renderer);
extern uint16_t tileTypeIndex;
#endif //FACTORYGAME_TILE_H