1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#include "level1.h"
#include "game.h"
#include "world.h"
#include "entity.h"
#include "entitiesInclude.h"
void initLevel2(Game * game, Levels * levels) {
int i;
WorldEntry entries[] = {
(WorldEntry){ENTITY_ANTIFA, (Vector3){0.0, 0.0, 0.0}, QuaternionIdentity()}
};
addEntriesToWorld(
&game->world,
game,
entries,
sizeof(entries) / sizeof(WorldEntry)
);
Vector3 groups[] = {
(Vector3){0.0, 0.0, 1000.0},
(Vector3){0.0, 0.0, -1000.0},
(Vector3){1000.0, 0.0, 0.0},
(Vector3){-1000.0, 0.0, 0.0},
(Vector3){0.0, 1000.0, 0.0},
(Vector3){0.0, -1000.0, 0.0}
};
for (i = 0; i < sizeof(groups) / sizeof(Vector3); ++i) {
Vector3 spacing = (Vector3){0.0, 10.0, 10.0};
addSoldatoGroupToWorld(game, 7, groups[i], spacing);
}
}
void closelevel2(Levels * levels) {
}
bool updateLevel2(Game * game, Levels * levels) {
if (game->world.entitiesCount == 1)
return true;
return false;
}
|