Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var Ghost = function(game, x, y) {
  2.         var bitmap = game.add.bitmapData(76, 76);
  3.         bitmap.fill(255, 200, 255, 1);
  4.  
  5.         Phaser.Sprite.call(this, game, x, y, bitmap);
  6.  
  7.         console.log(this);
  8.  
  9.         this.anchor.setTo(.5, .5);
  10.  
  11.         game.physics.enable(this);
  12.         this.body.immovable = true;
  13.         this.body.allowGravity = false;
  14.  
  15.     };
  16.  
  17.     Ghost.prototype = Object.create(Phaser.Sprite.prototype);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement