aboutsummaryrefslogtreecommitdiff
path: root/game/GameScene.cpp
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:13:08 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:13:08 +0100
commit17a587ee6ded6d51c678fcd89bf0d28dc60db43d (patch)
treebcf8685ac2f133878db070beb3b20c6b4a8dba31 /game/GameScene.cpp
parent714c8798dd0998ea15b1ba697962a97c586457fe (diff)
added boss fight, did not work
Diffstat (limited to 'game/GameScene.cpp')
-rw-r--r--game/GameScene.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/game/GameScene.cpp b/game/GameScene.cpp
index a255e17..07275ab 100644
--- a/game/GameScene.cpp
+++ b/game/GameScene.cpp
@@ -8,6 +8,7 @@
#include "background/BackgroundSubScene.h"
#include "enemy/BattleScript.h"
#include "enemy/EnemyBulletPool.h"
+#include "enemy/EnemyBulletSubScene.h"
#include "enemy/EnemyPool.h"
#include "enemy/EnemySubScene.h"
#include "hud/HudScript.h"
@@ -62,8 +63,8 @@ void GameScene::load_scene() {
camera.add_component<BehaviorScript>().set_script<SpeedScript>();
camera.add_component<BehaviorScript>().set_script<ObjectsScheduler>();
camera.add_component<BehaviorScript>().set_script<MissileSpawnEventHandler>();
-
camera.add_component<BehaviorScript>().set_script<BattleScript>();
+
camera.add_component<Rigidbody>(Rigidbody::Data {});
AI & enemy_path_1 = camera.add_component<AI>(400);
enemy_path_1.make_oval_path(100, 100, camera.transform.position, 1.5708, true);
@@ -73,9 +74,7 @@ void GameScene::load_scene() {
enemy_path_3.make_oval_path(100, 100, {0, 0}, 1.5708, true);
// camer.add_component<AI>
PlayerSubScene player(*this);
-
MissilePool missile_pool(*this);
-
WorkersSubScene workers(*this);
GameObject floor = new_object("floor", "game_world", vec2(0, 325));