Added unproject

Broken and buggy font stuff
Fixed some typos
Fixed draw rect not using dim properly
This commit is contained in:
2025-10-05 21:11:18 +01:00
parent 5cabf845b6
commit eb3c81cd04
11 changed files with 349 additions and 22 deletions

View File

@@ -16,3 +16,24 @@ void UpdateNPCs(F32 delta, World *world) {
void ProcessEvents(SDL_Event *event, World *world) {
PlayerUpdate(event, &world->player);
}
void G_WorldDraw(G_State *game, World *world) {
D_Context *draw = &game->draw;
(void) world;
for (F32 y = -128; y < 128; y += 1.1f) {
for (F32 x = -128; x < 128; x += 1.1f) {
U32 ux = (U32) x;
U32 uy = (U32) y;
U32 tid = 15;
if ((ux % 11) == 0 || ((uy % 7) == 0)) {
tid = 16;
}
D_Rect(draw, x, y, .texture = tid);
}
}
}