game-engine/modules/game-objects/camera.js

13 lines
284 B
JavaScript
Raw Normal View History

2024-09-13 21:45:59 -05:00
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;
}
}