Further hunt mode refactors

This commit is contained in:
2025-02-02 14:17:30 -08:00
parent dfae5b2405
commit 40ea1b909c
5 changed files with 152 additions and 132 deletions

View File

@ -10,6 +10,15 @@ class Drawing {
this.camera = new Point(0, 0);
}
withCamera(point: Point, cb: () => void) {
let oldCamera = this.camera;
this.camera = this.camera = point;
cb();
this.camera = oldCamera;
}
get size() { return getScreen().size; }
invertRect(position: Point, size: Size) {