aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-11 15:25:50 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-11 15:25:50 -0700
commit9e8ea2f80cbeff8341a7fbda2cf572697918808f (patch)
tree12d3b846a19a6c2f9a2d57b0791e55cee4a9c476 /src
parentb2fbf16102fa3b9e7d248e9ab217d72566702a55 (diff)
More level 8 shit
Diffstat (limited to 'src')
-rw-r--r--src/levels/level8.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/levels/level8.c b/src/levels/level8.c
index 2e86726..a903ed0 100644
--- a/src/levels/level8.c
+++ b/src/levels/level8.c
@@ -18,7 +18,7 @@ void initLevel8(Game * game, Levels * levels) {
WorldEntry entries[] = {
(WorldEntry){ENTITY_ANTIFA, (Vector3){0.0, 0.0, 0.0}, QuaternionIdentity()},
(WorldEntry){ENTITY_GENERALE, (Vector3){0.0, 0.0, 700.0}, QuaternionIdentity()}
- };
+ };
addEntriesToWorld(
&game->world,
@@ -40,6 +40,26 @@ bool updateLevel8(Game * game, Levels * levels) {
switch (data->stage) {
case 0:
if (game->world.entitiesCount == 1) {
+ Vector3 playerPosition = getEntityFromWorld(game->world, 0)->position;
+
+ WorldEntry entries[] = {
+ (WorldEntry){ENTITY_GENERALE, Vector3Add(playerPosition, (Vector3){0.0, 0.0, -1500.0}),
+ QuaternionIdentity()},
+ (WorldEntry){ENTITY_GENERALE, Vector3Add(playerPosition, (Vector3){-1000.0, 0.0, -500.0}),
+ QuaternionIdentity()},
+ (WorldEntry){ENTITY_GENERALE, Vector3Add(playerPosition, (Vector3){0.0, -500.0, 1500.0}),
+ QuaternionIdentity()},
+ (WorldEntry){ENTITY_MARESCIALLO, Vector3Add(playerPosition, (Vector3){-1500.0, 0.0, 1500.0}),
+ QuaternionIdentity()}
+ };
+
+ addEntriesToWorld(
+ &game->world,
+ game,
+ entries,
+ sizeof(entries) / sizeof(WorldEntry)
+ );
+
data->stage = 1;
}