aboutsummaryrefslogtreecommitdiff
path: root/src/levels/level9.c
blob: ccef16305335c39cac960e2d87ff0a75c0e15c62 (plain)
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
#include "level9.h"
#include "game.h"
#include "world.h"
#include "entity.h"
#include "entityGrouping.h"

void initLevel9(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, -800.0}, QuaternionIdentity()},
		(WorldEntry){ENTITY_GENERALE, (Vector3){-800.0, -800.0, -800.0}, QuaternionIdentity()}
	 };

    addEntriesToWorld(
		&game->world,
		game,
		entries,
		sizeof(entries) / sizeof(WorldEntry)
	);

    addSoldatoGroupWithLeader(game, ENTITY_CAPORALE, 3, (Vector3){-1000.0, 0.0, 0.0}, (Vector3){0.0, -15.0, -15.0});
    addSoldatoGroupWithLeader(game, ENTITY_CAPORALE, 3, (Vector3){1000.0, 0.0, 0.0}, (Vector3){0.0, 15.0, 15.0});
}

void closelevel9(Levels * levels) {
}

bool updateLevel9(Game * game, Levels * levels) {
    return game->world.entitiesCount == 1;
}