Puzz3l Posted April 21, 2014 Share Posted April 21, 2014 Is it necessary to create a shutdown method like so to free up memory or is dealt with automatically?shutdown: function() { this.space.onDown.dispose(); this.arrow.destroy(); this.bombs.destroy(); this.blasts.destroy(); this.waves.destroy(); this.explosions(); this.enemies.destroy(); this.spawnAnim.destroy(); this.waveCharge.destroy(); this.label_score.destroy(); this.label_highscore.destroy(); this.game.time.events.remove(this.enemySpawnTimer);} Link to comment Share on other sites More sharing options...
Puzz3l Posted April 21, 2014 Author Share Posted April 21, 2014 No responses, but I figured I'd just say I haven't been using a shutdown and it works fine so I'll go without one. Link to comment Share on other sites More sharing options...
Recommended Posts