summaryrefslogtreecommitdiff
path: root/game/prefabs/pill.js
blob: 2df13f270ac67769f5046fd8e448014e5d7e3944 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';

var Pill = function(game, x, y, frame) {
  Phaser.Sprite.call(this, game, x, y, 'pill', frame);
  this.scale = {x: 0.01, y: 0.01};
  this.anchor = {x: 0.5, y: 0.5};
  // initialize your prefab here
  
};

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

Pill.prototype.update = function() {
  
  // write your prefab's specific update code here
  
};

module.exports = Pill;