camera.js 280 B

123456789101112131415
  1. function Camera() {
  2. this.position = {x: 0, y: 0};
  3. this.viewBox = {x: 100, y: 100, width: 600, height: 400};
  4. this.init = function(canvas) {
  5. }
  6. this.update = function(canvas, delta) {
  7. //this.followPlayer(player, delta);
  8. }
  9. this.handleResize = function(canvas) {
  10. }
  11. };