aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index 9376eab..f2471fc 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -10,7 +10,10 @@
#include "hud/HudSubScene.h"
#include "hud/SpeedScript.h"
#include "menus/endgame/EndGameSubScene.h"
+#include "missile/MissilePool.h"
+#include "missile/SpawnEvent.h"
#include "player/PlayerSubScene.h"
+#include "scheduler/ObjectsScheduler.h"
#include "workers/WorkersSubScene.h"
#include <cmath>
@@ -47,11 +50,15 @@ void GameScene::load_scene() {
camera.add_component<BehaviorScript>().set_script<CoinSystemScript>();
camera.add_component<BehaviorScript>().set_script<HudScript>();
camera.add_component<BehaviorScript>().set_script<SpeedScript>();
+ camera.add_component<BehaviorScript>().set_script<ObjectsScheduler>();
+ camera.add_component<BehaviorScript>().set_script<MissileSpawnEventHandler>();
camera.add_component<Rigidbody>(Rigidbody::Data {});
PlayerSubScene player(*this);
+ MissilePool missile_pool(*this);
+
WorkersSubScene workers(*this);
GameObject floor = new_object("floor", "game_world", vec2(0, 325));