aboutsummaryrefslogtreecommitdiff
path: root/src/example/Background.cpp
blob: 0ad2c0cca349b6cdd4a7aee44cdacb1c9bc66288 (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
31
32
33
34
35
36
37
#include "Background.h"
#include "Aquarium.h"
#include "Forest.h"
#include "Hallway.h"
#include "Start.h"

#include <crepe/api/Color.h>

using namespace crepe;
using namespace std;

Background::Background(Scene & scn) {
	Start start;
	Hallway hallway;
	Forest forest;
	Aquarium aquarium;

	float begin_x = 400;

	begin_x = start.create(scn, begin_x);

	begin_x = hallway.create(scn, begin_x, 1, Color::YELLOW);

	begin_x = forest.create(scn, begin_x, "1");

	begin_x = hallway.create(scn, begin_x, 2, Color::MAGENTA);

	begin_x = aquarium.create(scn, begin_x);

	begin_x = hallway.create(scn, begin_x, 3, Color::CYAN);

	begin_x = forest.create(scn, begin_x, "2");

	begin_x = hallway.create(scn, begin_x, 4, Color::GREEN);

	begin_x = aquarium.create(scn, begin_x);
}