Files
PixelDefense/game/map_init.h
2024-01-23 18:45:12 +01:00

25 lines
625 B
C

#ifndef PIXELDEFENSE_MAP_INITIALIZATION_H
#define PIXELDEFENSE_MAP_INITIALIZATION_H
#include <breeze.h>
#include <flecs.h>
#include "components.h"
bool initGameObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
bool initEntityObjectsLayer(BzTileMap *map, BzTileObjectGroup *objectGroup);
bool initBuildingsLayer(BzTileMap *map, BzTileLayer *layer);
bool initRocksLayer(BzTileMap *map, BzTileLayer *layer);
bool initTreesLayer(BzTileMap *map, BzTileLayer *layer);
typedef struct Game Game;
void loadMap(Game *game, const char *path);
void unloadMap(Game *game);
#endif //PIXELDEFENSE_MAP_INITIALIZATION_H