feat (BROKEN): Save world code
This commit is contained in:
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
|
||||
camera->farp = 1000.0f;
|
||||
|
||||
game->draw.camera = camera;
|
||||
World *world = M_ArenaPush(arena, World);
|
||||
World *world = LoadWorld(arena);
|
||||
game->world = world;
|
||||
world->arena = arena;
|
||||
world->random = Random_Seed(29237489723847);
|
||||
@@ -127,7 +127,6 @@ int main(int argc, char **argv)
|
||||
badman->pointsOfInterest[0] = 937;
|
||||
badman->pointsOfInterest[1] = 12;
|
||||
|
||||
world->navMesh = &TestNavMesh;
|
||||
world->npcPOI[0] = 100;
|
||||
world->player.world = world;
|
||||
world->player.pos.x = 0;
|
||||
@@ -214,8 +213,6 @@ int main(int argc, char **argv)
|
||||
// D_Rect(&game->draw, -8.0f, 0.0f, .texture = 2, .scale = 2.0f);
|
||||
// D_Rect(&game->draw, 6.0f, 0.0f, .texture = 3);
|
||||
|
||||
G_WorldDraw(game, game->world);
|
||||
|
||||
R2f aframe = D_AnimationFrame(&animation);
|
||||
D_Rect(&game->draw, 0, 0, .texture = animation.id, .uv = aframe, .flags = D_RECT_UV_ASPECT);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user