Restructure files

This commit is contained in:
2023-11-15 08:23:58 +01:00
parent d37936ce7f
commit e9bdc623fc
7 changed files with 16 additions and 12 deletions

View File

@@ -9,13 +9,7 @@ add_subdirectory(engine/)
add_executable(PixelDefense
game/systems/entity_systems.c
game/systems/systems.h
game/systems/ui_systems.c
game/utils/building_types.h
game/utils/pathfinding.c
game/utils/pathfinding.h
game/buildings.c
game/buildings.h
@@ -26,6 +20,11 @@ add_executable(PixelDefense
game/map_init.c
game/map_init.h
game/map_layers.h
game/pathfinding.c
game/pathfinding.h
game/systems.h
game/systems_entity.c
game/systems_ui.c
)

View File

@@ -1,6 +1,6 @@
#include <rlImGui.h>
#include "systems/systems.h"
#include "systems.h"
#include "utils/building_types.h"
#include "components.h"
#include "game_state.h"
@@ -8,7 +8,7 @@
#include "map_layers.h"
#include "buildings.h"
#include "utils/pathfinding.h"
#include "pathfinding.h"
ECS_COMPONENT_DECLARE(Game);

View File

@@ -3,7 +3,7 @@
#include <breeze.h>
#include "../components.h"
#include "components.h"
typedef struct PathMove {
i8 x;

View File

@@ -3,7 +3,12 @@
#include <flecs.h>
#include "../components.h"
#include "components.h"
/**********************************
* Entity Systems
**********************************/
void renderEntities(ecs_iter_t *it);
void updateAnimations(ecs_iter_t *it);

View File

@@ -1,7 +1,7 @@
#include "systems.h"
#include "../game_state.h"
#include "game_state.h"
#include <math.h>
#include <raymath.h>

View File

@@ -1,6 +1,6 @@
#include "systems.h"
#include "../game_state.h"
#include "game_state.h"
void uiTask(ecs_iter_t *it) {
const Game *game = ecs_singleton_get(ECS, Game);