-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
20 lines (19 loc) · 746 Bytes
/
main.cpp
File metadata and controls
20 lines (19 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Engine/Factory.hpp>
#include "LD33.hpp"
#include "ScrollingBg.hpp"
#include "Player.hpp"
#include "Animal.hpp"
#include "Bar.hpp"
#include "Object.hpp"
#include "PowerUp.hpp"
int main() {
engine::Factory::RegisterType("scrollingbg", engine::Factory::CreateChildNode<ScrollingBg>);
engine::Factory::RegisterType("player", engine::Factory::CreateChildNode<Player>);
engine::Factory::RegisterType("object", engine::Factory::CreateChildNode<Object>);
engine::Factory::RegisterType("animal", engine::Factory::CreateChildNode<Animal>);
engine::Factory::RegisterType("bar", engine::Factory::CreateChildNode<Bar>);
engine::Factory::RegisterType("powerup", engine::Factory::CreateChildNode<PowerUp>);
LD33 game;
game.run();
return 0;
}