Restructure/refactor of main.c

This commit is contained in:
2023-11-12 16:14:30 +01:00
parent df911c65b7
commit 8edb7b7ea9
13 changed files with 280 additions and 159 deletions

27
game/map_init.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef PIXELDEFENSE_MAP_INITIALIZATION_H
#define PIXELDEFENSE_MAP_INITIALIZATION_H
#include <breeze.h>
typedef enum Layers {
LAYER_TERRAIN = 0,
LAYER_FOLIAGE,
LAYER_TREES,
LAYER_TREES2,
LAYER_BUILDINGS,
LAYER_BUILDING_OWNER,
} Layers;
typedef enum ObjectGroup {
OBJECTS_GAME = 0,
OBJECTS_ENTITIES,
} ObjectGroup;
bool initGameObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
bool initBuildingsLayer(BzTileMap *map, BzTileLayer *layer);
#endif //PIXELDEFENSE_MAP_INITIALIZATION_H