Refactor cache module
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user