diff options
| author | Brian Cully <bjc@spork.org> | 2025-12-22 19:51:03 -0500 |
|---|---|---|
| committer | Brian Cully <bjc@spork.org> | 2025-12-22 19:51:03 -0500 |
| commit | 89426c8a02210daf19cd6b9230e59a0d1b2fe006 (patch) | |
| tree | 70ddc092593d4f8e818bd890d7930ce708006d46 | |
| parent | acad2b35e50a250330975bda90f3e36002584f90 (diff) | |
| download | automathon-89426c8a02210daf19cd6b9230e59a0d1b2fe006.tar.gz automathon-89426c8a02210daf19cd6b9230e59a0d1b2fe006.zip | |
js: time delta is int
| -rw-r--r-- | site/main.mjs | 2 |
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); |
