From 17886df36de15e42689acff39dae1c06a6e24c5f Mon Sep 17 00:00:00 2001 From: Daniel Cordero Date: Sat, 8 Apr 2017 21:47:35 +0000 Subject: [PATCH] Remove references to spiders before they have been introduced Spiders are introduced in step 10 and are not necessary in earlier steps --- src/assets/assets/platformer/steps/step09.js | 2 +- src/content/platformer/step09_en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/assets/platformer/steps/step09.js b/src/assets/assets/platformer/steps/step09.js index 5e63d0c..0d1d99a 100644 --- a/src/assets/assets/platformer/steps/step09.js +++ b/src/assets/assets/platformer/steps/step09.js @@ -118,7 +118,7 @@ PlayState._loadLevel = function (data) { // spawn all platforms data.platforms.forEach(this._spawnPlatform, this); // spawn hero and enemies - this._spawnCharacters({hero: data.hero, spiders: data.spiders}); + this._spawnCharacters({hero: data.hero}); // spawn important objects data.coins.forEach(this._spawnCoin, this); diff --git a/src/content/platformer/step09_en.md b/src/content/platformer/step09_en.md index b010af9..37d1798 100644 --- a/src/content/platformer/step09_en.md +++ b/src/content/platformer/step09_en.md @@ -40,7 +40,7 @@ To collect the coins we will **detect when the main character has touched** any // ... - this._spawnCharacters({hero: data.hero, spiders: data.spiders}); + this._spawnCharacters({hero: data.hero}); // spawn important objects data.coins.forEach(this._spawnCoin, this);