Add path debug drawing, resources fields

This commit is contained in:
2023-11-14 16:21:14 +01:00
parent 8825b9e01f
commit 274612b035
6 changed files with 82 additions and 14 deletions

View File

@@ -10,13 +10,25 @@ typedef struct Game {
BzTileset buildingsTileset;
BzTileset entitiesTileset;
BzTileMap map;
int selectedBuilding;
ecs_entity_t *entityMap;
f32 frameDuration;
Vector2 targetPos;
ecs_entity_t entity;
Path path;
Position waypoints[128];
struct {
int building;
Vector2 mouseDown;
f32 mouseDownElapsed;
} input;
struct {
i64 wood;
i64 iron;
i64 food;
i64 gold;
i64 pop;
} resources;
f32 elapsed;
} Game;
extern Game *GAME;