Buildings as entities instead of map layer

This commit is contained in:
2024-01-08 14:41:26 +01:00
parent 03dc3774e7
commit c08fca9670
17 changed files with 168 additions and 186 deletions

View File

@@ -5,7 +5,10 @@
#include <stdio.h>
f32 uiGetScale() {
return GetScreenHeight() / 720.0f;
// Assuming 16:9 aspect
f32 scaleX = GetScreenWidth() / 1280.0f;
f32 scaleY = GetScreenHeight() / 720.0f;
return BZ_MIN(scaleX, scaleY);
}
Font getFont() {