From 882c8a60c1e8cc18e422d13fd66465c4bfd4f5bc Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 11 Jun 2014 21:19:34 -0700 Subject: [PATCH] More wandering sprite work --- moonlight/js/moonlight-skulk.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/moonlight/js/moonlight-skulk.js b/moonlight/js/moonlight-skulk.js index f42f764..c88d518 100644 --- a/moonlight/js/moonlight-skulk.js +++ b/moonlight/js/moonlight-skulk.js @@ -219,7 +219,7 @@ var WanderingSprite = function(game, x, y, spritetype) { ]; Phaser.Sprite.call(this, game, x, y, spritenames_by_type[spritetype]); game.physics.arcade.enable(this); - this.body.checkWorldBounds = true; + this.body.collideWorldBounds = true; addAnimation(this, 'bipedwalkleft'); addAnimation(this, 'bipedwalkright'); @@ -229,7 +229,6 @@ var WanderingSprite = function(game, x, y, spritetype) { addAnimation(this, 'bipedrunright'); addAnimation(this, 'bipedrunup'); addAnimation(this, 'bipedrundown'); - } WanderingSprite.prototype = Object.create(Phaser.Sprite.prototype);