aboutsummaryrefslogtreecommitdiff
path: root/game/prefab/ZapperPoolScript.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:24:09 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:24:21 +0100
commitf22a282b7863d35928fa3290f964ce3be5c0dbc9 (patch)
tree09aa2d1d7b730154288b9496f141cf711cdfdecf /game/prefab/ZapperPoolScript.h
parent261a2cfd2bedafbc7fcf54e1b86adee206dea519 (diff)
tweak zapper spawning logic
Diffstat (limited to 'game/prefab/ZapperPoolScript.h')
-rw-r--r--game/prefab/ZapperPoolScript.h3
1 files changed, 2 insertions, 1 deletions
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;
};