From f22a282b7863d35928fa3290f964ce3be5c0dbc9 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 8 Jan 2025 15:24:09 +0100 Subject: tweak zapper spawning logic --- game/prefab/ZapperPoolScript.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'game/prefab/ZapperPoolScript.h') diff --git a/game/prefab/ZapperPoolScript.h b/game/prefab/ZapperPoolScript.h index 6aee8b2..dd60071 100644 --- a/game/prefab/ZapperPoolScript.h +++ b/game/prefab/ZapperPoolScript.h @@ -28,6 +28,7 @@ private: void spawn_random(); private: - static constexpr float OFFSCREEN_MARGIN = 40; + static constexpr float MAX_LENGTH = 400; + static constexpr float OFFSCREEN_MARGIN = 50 + MAX_LENGTH; }; -- cgit v1.2.3