diff options
| -rw-r--r-- | game/Config.h | 2 | ||||
| -rw-r--r-- | game/missile/SpawnEvent.h | 5 | 
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(); |