feat(#8): modularizing

This commit is contained in:
Juan Sebastián Montoya 2024-09-13 21:45:59 -05:00
parent f300fe1be7
commit 32dd2ad599
11 changed files with 271 additions and 94 deletions

View file

@ -0,0 +1,12 @@
import { GameObject } from "./game-object.js";
export class Camera extends GameObject {
constructor({ map, x = 0, y = 0, width = 320, height = 240 }) {
super({ x, y });
this.map = map;
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
}