diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-09 02:23:05 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-09 02:23:05 -0600 |
commit | 23be929353d4583edbd8621cd755f8a636c3fd90 (patch) | |
tree | 36d7502dbe628502eb7708c4617d1931420c8a66 /src/game.c | |
parent | 708072e716e7ab22a37f528311a433f195f75054 (diff) |
soldato asset added
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 33 |
1 files changed, 1 insertions, 32 deletions
@@ -12,26 +12,18 @@ void initGame(Game * game) { LoadAssets(&game->assets); // Screen id. - game->screenId = SCREEN_GAME; + game->screenId = SCREEN_MAIN_MENU; // Main menu. initMainMenu(game); // Camera. initPlayerCamera(&game->playerCamera); - - DisableCursor(); // World. initWorld(&game->world); // Debug. - // Add player. - //addEntityToWorld( - // &game->world, - // createEntity(ENTITY_ANTIFA, game) - //); - WorldEntry entries[] = { (WorldEntry){ENTITY_ANTIFA, Vector3Zero(), QuaternionIdentity()}, (WorldEntry){ENTITY_SOLDATO, (Vector3){10.0, 10.0, 10.0}, QuaternionIdentity()}, @@ -46,29 +38,6 @@ void initGame(Game * game) { entries, sizeof(entries) / sizeof(WorldEntry) ); - - puts("v"); - - for (int i = 0; i < game->world.vacantIdsCount; ++i) - printf("%d\n", game->world.vacantIds[i]); - - puts("l"); - - for (int i = 0; i < game->world.lookUpSize; ++i) { - printf("%d\n", game->world.lookUp[i]); - - Entity * e = getEntityFromWorld(game->world, i); - - if (e == NULL) { - puts("null"); - continue; - } - - if (e->id == i) - printf("good %x\n", e->fingerprint); - else - printf("bad %d\n", e->id); - } } void closeGame(Game * game) { |