Top Chef Bob - Part 05 - Add more falling ingredients!
Part 05 of the Top Chef Bob food simulator game is to:
1) Add additional food items (ingredients) which will fall from the sky.

Add food object
In the "playlevel1.js" file, find the createIngredients function. Add the following food object for each ingredient u want to add.
Add as many ingredients as you want, by adding additional food objects and changing the object name and pictures.
// TACO SHELL
// create an object to store information about our ingredient
this.foodTacoShell = {
group: game.add.group(),
picture: game.bmpTacoShell,
releaseTime: 0,
numberSprites: this.NUMBER_OF_INGREDIENT_SPRITES,
spriteScale: this.SPRITE_SCALE
};
// fill up the group in our food object with sprites of our ingredient
this.fillUpGroup(this.foodTacoShell);
Display food item
In the "playlevel1.js" file, find the UPDATE function. Add the line below for each new food object you created.
It's a good idea to put all the "displayIngredient" calls together.
this.displayIngredient(this.foodTacoShell);
Run Game and Check for Errors
Press F12 to check console for any problems.
You should see your new food item fall from the sky with all the other food items!
In the next part, we will create a new menu item which can use the new food item in the recipe.
code on plnkr