diff options
author | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-20 03:08:57 -0600 |
---|---|---|
committer | nathansmithsmith <thenathansmithsmith@gmail.com> | 2023-07-20 03:08:57 -0600 |
commit | 43e31b6e124da754ef928d22fbb9a1d7640aab4b (patch) | |
tree | 698f723866bd99982a6c606c63cfa0387863e2db /src/game.c | |
parent | f3f5fedbf591c10fa675a32103bab9480b42abe8 (diff) |
New bullet system
Diffstat (limited to 'src/game.c')
-rw-r--r-- | src/game.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -19,19 +19,19 @@ void initGame(Game * game) { // Camera. initPlayerCamera(&game->playerCamera); - - // Bullets. - initBullets(&game->bullets); // World. initWorld(&game->world); // Debug. - WorldEntry entries[] = { - (WorldEntry){ENTITY_ANTIFA, Vector3Zero(), QuaternionIdentity()}, - (WorldEntry){ENTITY_SOLDATO, (Vector3){0.0, 0.0, 10.0}, QuaternionIdentity()} + WorldEntry entries[101] = { + (WorldEntry){ENTITY_ANTIFA, Vector3Zero(), QuaternionIdentity()}, }; + for (int i = 1; i < 101; ++i) { + entries[i] = (WorldEntry){ENTITY_CAPORALE, (Vector3){0.0, 0.0, i*10}, QuaternionIdentity()}; + } + addEntriesToWorld( &game->world, game, @@ -42,7 +42,6 @@ void initGame(Game * game) { void closeGame(Game * game) { unloadAssets(&game->assets); - freeBullets(&game->bullets); freeWorld(&game->world); // Close window last. |