Overhaul tilemap, add building ownership layer
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user