Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Neon.Client {
  2.  
  3.     export class Game extends Phaser.State {
  4.  
  5.         create() {
  6.             this.game.world.setBounds(0, 0, this.game.width, this.game.height);
  7.         }
  8.  
  9.         update() {
  10.             this.game.world.camera.setPosition(100, 0);
  11.         }
  12.  
  13.         render() {
  14.             this.game.debug.cameraInfo(this.game.world.camera, 50, 50);
  15.         }
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement