Null sprite for torches

This commit is contained in:
Andrew Kesterson
2014-06-11 10:48:05 -07:00
parent 42a504a3ae
commit b041f718c0

View File

@@ -144,7 +144,7 @@ var moonlightSettings = {
// Create torch objects
// Torch constructor
var Torch = function(game, x, y) {
Phaser.Sprite.call(this, game, x, y, 'player');
Phaser.Sprite.call(this, game, x, y, null);
// Set the pivot point for this sprite to the center
this.anchor.setTo(0.5, 0.5);