Refactor cache module

This commit is contained in:
Schluffe
2026-08-08 14:00:36 +02:00
parent bb071074d2
commit bed4a58cad
7 changed files with 249 additions and 118 deletions
+2 -2
View File
@@ -94,7 +94,7 @@ window.player = player;
// walls: a border plus a few interior blocks to slide against
const T = 8; // border thickness
const ledge = { x: 70, y: 40, w: 40, h: 16 }; // a ledge
const ledge = { x: 70, y: 80, w: 40, h: 16 }; // a ledge
let ledgeDir = 1;
const walls = [
@@ -193,7 +193,7 @@ function resolveOverlaps(box, walls) {
res.settled = true;
}
if (tries > 7) {
if (tries > 3) {
break;
}
}