summaryrefslogtreecommitdiff
path: root/game/prefabs/bonusPill.js
blob: 1b7ae565dcb9a064169ecd500226fd90628a9080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';

var BonusPill = function(game, x, y, frame) {
  Phaser.Sprite.call(this, game, x, y, 'bonus-pill', frame);
  this.scale = {x: 0.01, y: 0.01};
  this.anchor = {x: 0.5, y: 0.5};
  
  this.game.physics.arcade.enableBody(this);
  this.score = 10;
};

BonusPill.prototype = Object.create(Phaser.Sprite.prototype);
BonusPill.prototype.constructor = BonusPill;

module.exports = BonusPill;