diff options
Diffstat (limited to 'game/prefabs/pill.js')
-rw-r--r-- | game/prefabs/pill.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/game/prefabs/pill.js b/game/prefabs/pill.js new file mode 100644 index 0000000..2df13f2 --- /dev/null +++ b/game/prefabs/pill.js @@ -0,0 +1,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; |