aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-11 14:36:35 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-11 14:36:35 +0100
commit7b6c3cc3986d122b9c5ec0b1ddab80aac62d778b (patch)
treee6a7d5ba6d684f1d9d3c1be5f613c063a89a8093
parentb351a0d65629fee55d73fb291ae4c81e3b73447e (diff)
improved missile spawn location
-rw-r--r--game/missile/SpawnEvent.h5
1 files 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();