From 7b6c3cc3986d122b9c5ec0b1ddab80aac62d778b Mon Sep 17 00:00:00 2001 From: heavydemon21 Date: Sat, 11 Jan 2025 14:36:35 +0100 Subject: improved missile spawn location --- game/missile/SpawnEvent.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/game/missile/SpawnEvent.h b/game/missile/SpawnEvent.h index 3b9638c..84b1987 100644 --- a/game/missile/SpawnEvent.h +++ b/game/missile/SpawnEvent.h @@ -10,9 +10,8 @@ struct MissileSpawnEvent : public crepe::Event {}; class MissileSpawnEventHandler : public crepe::Script { private: static constexpr int MISSILE_OFFSET = VIEWPORT_X; - static constexpr int RANGE = GAME_HEIGHT / 4.5; - static constexpr int MIN_RANGE = -RANGE; - static constexpr int MAX_RANGE = RANGE; + static constexpr int MIN_RANGE = -150; + static constexpr int MAX_RANGE = 150; public: void init(); -- cgit v1.2.3 From eb3ffdcccf08be7b2bb505d6bb1d4a688ca8cd27 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 11 Jan 2025 15:38:15 +0100 Subject: fix zapper spawn range --- game/Config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/Config.h b/game/Config.h index c819a4e..d2b5fc4 100644 --- a/game/Config.h +++ b/game/Config.h @@ -26,7 +26,7 @@ static constexpr int COLL_LAY_ENEMY = 10; // Only for GameScene static constexpr int COLL_LAY_PLAYER_BULLET = 11; // Only for GameScene static constexpr float GAME_HEIGHT = 800; // In game units -static constexpr float HALLWAY_HEIGHT = 475; // In game units +static constexpr float HALLWAY_HEIGHT = 450; // In game units static constexpr float VIEWPORT_X = 1100; // In game units // 'GAME_HEIGHT' (below) should be replaced by '500' when game development is finished -- cgit v1.2.3