aboutsummaryrefslogtreecommitdiff
path: root/src/levels/level8.c
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-08 17:21:32 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-08 17:21:32 -0700
commit028880ad2c3c3906ce1f1bc801cf9f1ea41ad8eb (patch)
tree5db01715df59c900bd9452a9054711f1be9d63d8 /src/levels/level8.c
parentf7392070995ad077dcaa387469934325e8e5c067 (diff)
Started level 8
Diffstat (limited to 'src/levels/level8.c')
-rw-r--r--src/levels/level8.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/levels/level8.c b/src/levels/level8.c
new file mode 100644
index 0000000..b132c76
--- /dev/null
+++ b/src/levels/level8.c
@@ -0,0 +1,26 @@
+#include "level8.h"
+#include "game.h"
+#include "world.h"
+#include "entity.h"
+#include "entityGrouping.h"
+
+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, 300.0}, QuaternionIdentity()}
+ };
+
+ addEntriesToWorld(
+ &game->world,
+ game,
+ entries,
+ sizeof(entries) / sizeof(WorldEntry)
+ );
+}
+
+void closelevel8(Levels * levels) {
+}
+
+bool updateLevel8(Game * game, Levels * levels) {
+ return game->world.entitiesCount == 1;
+}