kill counter fixed. 8x8 anf 8x16 fonts added. terrain slides are aminated.

This commit is contained in:
catarrh committed 2026-07-25 19:24:12 +03:00
1 parent 43ee0d9150
commit e8a79c2a81
9 files changed
+80 -20

No files matched your search

+5 -1
View File
@@ -163,8 +163,12 @@ export function drawParagraph(ctx, text, x, y, w, h, color) {
}
export function loop(fn) {
let lastTime = performance.now();
(function looped() {
fn();
const now = performance.now();
const dt = Math.min((now - lastTime) / 1000, 0.1);
lastTime = now;
fn(dt);
requestAnimationFrame(looped);
})();
}