-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGame.cpp
29 lines (21 loc) · 827 Bytes
/
Game.cpp
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
#include "Game.h"
Game::Game() : Application("Game Demo") {
}
void Game::run() {
ge::GameObject go1 = ge::GameObject();
go1.components.push_back(Component("Test 1"));
go1.components.push_back(Component("Test 2"));
go1.components.push_back(Component("Test 3"));
ge::GameObject go2 = ge::GameObject();
go2.components.push_back(Component("Test 1"));
go2.components.push_back(Component("Test 2"));
go2.components.push_back(Component("Test 3"));
ge::GameObject go3 = ge::GameObject();
go3.components.push_back(Component("Test 1"));
go3.components.push_back(Component("Test 2"));
go3.components.push_back(Component("Test 3"));
engine->gameObjects.push_back(go1);
engine->gameObjects.push_back(go2);
engine->gameObjects.push_back(go3);
ge::Application::run();
}