Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Ghost = function(game, x, y) {
- var bitmap = game.add.bitmapData(76, 76);
- bitmap.fill(255, 200, 255, 1);
- Phaser.Sprite.call(this, game, x, y, bitmap);
- console.log(this);
- this.anchor.setTo(.5, .5);
- game.physics.enable(this);
- this.body.immovable = true;
- this.body.allowGravity = false;
- };
- Ghost.prototype = Object.create(Phaser.Sprite.prototype);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement