Skip to content

Commit

Permalink
Merge pull request #23 from lmssiehdev/refactor/cleanup
Browse files Browse the repository at this point in the history
refactor(client): more cleanups
  • Loading branch information
leia-uwu authored Mar 26, 2024
2 parents 84dbca3 + 63b09be commit 4b2b472
Show file tree
Hide file tree
Showing 17 changed files with 1,005 additions and 874 deletions.
8 changes: 4 additions & 4 deletions client/src/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ export class Camera {
this.I = 0;
this.pos = v2.create(0, 0);
this.ppu = 16;
this.O = 1.5;
this.q = 1.5;
this.zoom = 1.5;
this.targetZoom = 1.5;
this.screenWidth = 1;
this.screenHeight = 1;
this.shakeEnabled = true;
this.shakeInt = 0;
}

z() {
return this.ppu * this.O;
return this.ppu * this.zoom;
}

pointToScreen(point) {
Expand All @@ -41,7 +41,7 @@ export class Camera {
}

pixels(p) {
return p * this.O;
return p * this.zoom;
}

scaleToScreen(s) {
Expand Down
Loading

0 comments on commit 4b2b472

Please sign in to comment.