aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-11 16:00:48 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-11 16:00:48 +0100
commitd61c207995693a21dd224f70bc7e7ead492c849b (patch)
tree29f227815f9bd073d0497e54da57f5aa08a385cc
parent9f6cfa2f4484b1abd79e126583f8baa8a2cbd7f8 (diff)
parent525636bb2158ecea68ebb9d6b8d2dc722524c5e5 (diff)
Merge remote-tracking branch 'origin/master' into max/preview
-rw-r--r--game/Config.h2
-rw-r--r--game/missile/SpawnEvent.h5
2 files changed, 3 insertions, 4 deletions
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
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();