From 0e01de6c9d9fad9729978bc94842dc7f8793bdf2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 28 Aug 2024 12:50:38 +0200 Subject: tweak army layout when approaching vertically. --- play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 0840827..15a8d09 100644 --- a/play.js +++ b/play.js @@ -463,7 +463,7 @@ function get_army_xy_lerp(s1, s2) { y = lerp(y1, y2, 1/2) if (n < 150) { - if (Math.abs(dx) > Math.abs(dy)) { + if (Math.abs(dx) * 0.75 > Math.abs(dy)) { if (dx > 0) x -= 10 else -- cgit v1.2.3