-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
23 lines (21 loc) · 859 Bytes
/
main.cpp
File metadata and controls
23 lines (21 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "LD35.hpp"
#include "Player.hpp"
#include "Rune.hpp"
#include "Goal.hpp"
#include "Tip.hpp"
#include "MagicLight.hpp"
#include "OneWayPlatform.hpp"
#include "Switch.hpp"
#include <Engine/Factory.hpp>
int main() {
engine::Factory::RegisterType("player", engine::Factory::CreateChildNode<Player>);
engine::Factory::RegisterType("rune", engine::Factory::CreateChildNode<Rune>);
engine::Factory::RegisterType("goal", engine::Factory::CreateChildNode<Goal>);
engine::Factory::RegisterType("tip", engine::Factory::CreateChildNode<Tip>);
engine::Factory::RegisterType("magicLight", engine::Factory::CreateChildNode<MagicLight>);
engine::Factory::RegisterType("oneWayPlatform", engine::Factory::CreateChildNode<OneWayPlatform>);
engine::Factory::RegisterType("switch", engine::Factory::CreateChildNode<Switch>);
LD35 game;
game.run();
return 0;
}