From 89426c8a02210daf19cd6b9230e59a0d1b2fe006 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Mon, 22 Dec 2025 19:51:03 -0500 Subject: js: time delta is int --- site/main.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'site') 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); -- cgit v1.3