Remove entity map in favor of spatial grid

This commit is contained in:
2023-11-16 16:31:19 +01:00
parent 6974a80611
commit 3ec6e9ad47
12 changed files with 310 additions and 255 deletions

View File

@@ -4,8 +4,6 @@
#include <breeze.h>
#include <flecs.h>
#include "entity_map.h"
typedef enum InputState {
INPUT_NONE,
INPUT_PLACING,
@@ -20,7 +18,7 @@ typedef struct Game {
BzTileset buildingsTileset;
BzTileset entitiesTileset;
BzTileMap map;
EntityMap entityMap;
BzSpatialGrid *entityGrid;
f32 frameDuration;
ecs_entity_t entity;
struct {