Added unproject
Broken and buggy font stuff Fixed some typos Fixed draw rect not using dim properly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user