From 4c31cbe99108ede95f7be30fdc422158c666eef0 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Sat, 14 Jun 2014 12:40:00 -0700 Subject: [PATCH] Adding static effect sprites from the map --- moonlight/js/moonlight-skulk.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index 75592dd..65e8295 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -579,6 +579,9 @@ var EffectSprite = function(game, x, y, key, frame, animation) { game.physics.arcade.enable(this); } +EffectSprite.prototype = Object.create(Phaser.Sprite.prototype); +EffectSprite.prototype.constructor = EffectSprite; + var AISprite = function(game, x, y, key, frame) { this.enableWordBubble = function() { this.enable_word_bubble = true;