aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-07-20 03:08:57 -0600
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-07-20 03:08:57 -0600
commit43e31b6e124da754ef928d22fbb9a1d7640aab4b (patch)
tree698f723866bd99982a6c606c63cfa0387863e2db /src/game.c
parentf3f5fedbf591c10fa675a32103bab9480b42abe8 (diff)
New bullet system
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/game.c b/src/game.c
index 5bf35c4..5141270 100644
--- a/src/game.c
+++ b/src/game.c
@@ -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.