Closed towerofnix closed 8 years ago
Should the camera be a class? (It'd allow us to move between different "active" cameras for cutscenes.)
class Camera {
x: number
y: number
constructor() {
this.x = 0
this.y = 0
}
}
game.camera = new Camera
Also, Entities have their own drawing mechanisms, so something like CanvasRenderingContext2D.translate would be bettter!
Just modifying
getDrawnPosition
andlet view(start/end)(x/y)
should do it.. this is what I was having trouble with earlier, though! :P