Overhaul tilemap, add building ownership layer

This commit is contained in:
2023-11-09 15:46:35 +01:00
parent dd96b23d32
commit f32c19dc3d
15 changed files with 324 additions and 103 deletions

View File

@@ -107,14 +107,18 @@ int main(int argc, const char **argv) {
}
while (!WindowShouldClose()) {
float dt = GetFrameTime();
if (NK)
UpdateNuklear(NK);
if (appDesc.update)
appDesc.update(0.0f, appDesc.userData);
appDesc.update(dt, appDesc.userData);
if (ECS)
ecs_progress(ECS, dt);
BeginDrawing();
if (appDesc.render)
appDesc.render(0.0f, appDesc.userData);
appDesc.render(dt, appDesc.userData);
if (NK)
DrawNuklear(NK);
EndDrawing();