top of page

Blog Entry 5 - [Hungry Kid] (2)

Updated: Mar 2, 2023

(Links towards video walk through and playable webpage can be found at the end)


To Begin With

After last week's feeling confused, conditions suddenly got better this week. As we had another meeting and continue talked about whether we were going to change the design(I've come up with more other ideas, but all underdeveloped) or continue to optimize the existing idea. Since we don't have much time, so we decided to stick to this one and make some small changes. However, instead of the food just coming out from the kid's hand(it's difficult to determine the frequency and it will cause chaos on the screen and also the change of teeth number will be confusing), I thought it will be better to set a fixed point and the food will all come out from that point.



The Final Rules

A 2D two-player silly game about food hygiene and dental hygiene. The whole game is played just for fun and the kid's body movement is the most fun part that we concentrate on.


Player 1 uses 'W/A/S/D' to control the left hand of the kid, and tries to let the kid food (apple/orange/sandwich) at the same time push the bad food away while player 2 uses '↑/←/↓/→' to control the right hand, and tries to let the kid eat bad food (moldy candy/button/shell) at the same time push the good food away. As the game runs, there will be obstacles coming to disturb the players.



Role Distribution

We soon decided on the roles. Yilin will do the drawing part. Tianhao and I are responsible for the programming and game optimization. We soon set up the GitLab link and the GitHub file for our project in order for us to keep working on the latest version of the project. For the programming part, we need to figure out how to make multiplayer input with 2 different devices and their individual mouse inputs, so I had a try and found difficulties with detecting a new player's mouse input after I used the Photon to create a room. Tianhao took that part as he is more advanced in coding so I will do the normal game mechanics coding part in Unity.



(Gitlab & GitHub)



Difficulties Faced

I started to add obstacles to the game scene(a bird that will randomly come down to the screen that may disturb the food's orbit). My first logical thinking is that I only create one bird and make it randomly go up and down in random seconds. However, I failed to make the bird work consistently. As a result, I tend to try another method which is using Instantiate to spawn the bird in random seconds. Fortunately, it works well.


After that, I did the other C# scripts such as the kid's mouth, the food(spawned randomly and in random directions), and the arms' physical movements. Also, I did the simple animations and sounds, there is a designed part that when the food touches the bushes at the bottom, the bushes will play an animation and make a sound.


I also thought about when the kid's hand touched the food, the food will stick to the hand so that the players can easily deliver the food into the kid's mouth. However, when I tried to do that in the morning, the food can only be held for a short time. It would be feasible for me to adjust that after the presentation(It's now fixed).



Final Outcome

screenshot from the game

  • the obstacle(bird) is appearing on the top

  • the bad food(moldy candy) has just appeared from the hat

  • the time limit of this round is 1 minute(player can choose the time they want before starting the game

  • the teeth remaining are shown at the top right corner

  • the basic instructions and goals are shown in the left and right corner

  • player 2 is controlling the right hand of the kid

  • the colorful bushes at the bottom are able to move when the food interactions with them


screenshot from the game

  • the animation on the mouth(silly visual effects)









screenshots from the game

  • the winning pages


What I've Learnt

  1. If one method is not working, just quickly try other ways, there are always many solutions to the problems.

  2. Start working on the projects as early as possible [time management is important].

  3. While making the games, designing for little details will also have a positive impact on the overall outcome.

  4. Always think about the game from a player's perspective [UI display]


A Video walk through: https://youtu.be/bkK_PCGPsYI

6 views0 comments

Comments


bottom of page