From 0729209117a4393e66d7f5b6d83083e2d7c0694c Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Wed, 8 Jan 2025 14:33:38 +0100 Subject: made my code work by adding it to the gamescene,main and config --- game/GameScene.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'game/GameScene.cpp') 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 @@ -47,11 +50,15 @@ void GameScene::load_scene() { camera.add_component().set_script(); camera.add_component().set_script(); camera.add_component().set_script(); + camera.add_component().set_script(); + camera.add_component().set_script(); camera.add_component(Rigidbody::Data {}); PlayerSubScene player(*this); + MissilePool missile_pool(*this); + WorkersSubScene workers(*this); GameObject floor = new_object("floor", "game_world", vec2(0, 325)); -- cgit v1.2.3