summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-28 12:50:38 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-28 12:50:38 +0200
commit0e01de6c9d9fad9729978bc94842dc7f8793bdf2 (patch)
tree72550550d839ba86ace0847685c72077b57ffb73 /play.js
parent5af14b682a3406cdbae37d260a5c6fe30b2aa908 (diff)
downloadwashingtons-war-0e01de6c9d9fad9729978bc94842dc7f8793bdf2.tar.gz
tweak army layout when approaching vertically.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
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