Week 9 - Checkpoint 2- Basic Level Blocking


Hi everyone, welcome to my second DevLog about the process of building Cooking Academy. In this post, I will summarise the basic movement i have implemented and some interactions I have done to make the player can pick up and drop things in the game.

In this checkpoint, I have implemented the constraints for the players such as the fridges, dish cabinet or the fire extinguisher. At the beginning, I have created the constraints as a decoration. However, when I created the pick up script, I cannot write the script to interact with the elements such as the fire extinguisher or the cabinets. Therefore, I have changed it to prefabs so I can implement the game interaction. For the prefabs, I have set the Box collider as well as Rigidbody to make the player interact physically with those elements. In addition, this can also help me to implement the pick up and drop off script (I will mention after this) as well. For other kitchen constraints, I have made the different layer for the decoration (so that it can sit on top of the background layer) and add Tilemap collider as well as Composite collider to make them interact with the player. The constraints can be shown in the attached video, please have a look and give me some feedback as well 😊

For my interaction behaviours, this week I have implemented the pick up and drop off script. Player can select the element such as the fire extinguisher using E key and dish or other cooking ingredients using Q key. However, based on the feedback of other class members as well as my friends, I should move the pick up cooking element key to the Space key so that it would be easier for players to click when the game also have time constraint as well. In addition, players can also drop the element using the same key. Otherwise, if user want to pick up a cooking ingredient, they will be required to hold a dish, but they can drop the food in the table or the pan. All the food will require less than 10 ingredients so that players cannot hold more than 10 ingredient at the same time. However, if players want to eliminate the failed dish, they can click the R key to through the dish away (however it might cause fire that player need to use the fire extinguisher to eliminate it). The throwing feature is currently being implemented and I will update it in the next DevLog. In addition, for the next Devlog, I will also implement the point calculator script as well. The calculator script will based on how many dish player have successfully delivered, as well as the number of fire being extinguished. In addition, player might lose point if they have left over food after the level end and this will decrease player marks. This point calculator will help players to unlock new level (or might be new skills in the following updates). 

Leave a comment

Log in with itch.io to leave a comment.