Some progress
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user