For #7 : Townsfolk and guardsmen spawn with 'treasure'. AI with treasure will occasionally 'glint' playing an effect to show the player they have treasure.

This commit is contained in:
2014-06-28 17:38:50 -07:00
parent 301073110b
commit 830ebe2261
8 changed files with 271 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ GameState.prototype.create = function()
this.aiSprites.forEach(function(spr) {
spr.update_new_values();
}, this)
this.aiSpriteEffects = game.add.group();
player = this.add.sprite((19 * 32), (21 * 32), 'player');
player.score = 0;
player.lightmeter = 0;