summaryrefslogtreecommitdiffstats
path: root/site/main.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-12-22 19:51:03 -0500
committerBrian Cully <bjc@spork.org>2025-12-22 19:51:03 -0500
commit89426c8a02210daf19cd6b9230e59a0d1b2fe006 (patch)
tree70ddc092593d4f8e818bd890d7930ce708006d46 /site/main.mjs
parentacad2b35e50a250330975bda90f3e36002584f90 (diff)
downloadautomathon-89426c8a02210daf19cd6b9230e59a0d1b2fe006.tar.gz
automathon-89426c8a02210daf19cd6b9230e59a0d1b2fe006.zip
js: time delta is int
Diffstat (limited to 'site/main.mjs')
-rw-r--r--site/main.mjs2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/main.mjs b/site/main.mjs
index f2012ab..27da04f 100644
--- a/site/main.mjs
+++ b/site/main.mjs
@@ -107,7 +107,7 @@ function renderRobo(ctx, x, y) {
ctx.fill();
}
-function renderArena(robos, delta=0.0) {
+function renderArena(robos, delta=0) {
// interpolation factor for smoother movement independent of tick
// rate, but never tween more than 1 tick.
const timeScale = Math.min(delta / MS_PER_TICK, 1.0);