Topic: This project is about experimenting with C#. The goal is to create a simple game with a player controller and gameplay mechanics. The focus is completely on game design rather than art. The assets used are from Synty Studios Asset packs. In this project I heavily rely on pre made asset packs to focus on code and gameplay.
In this game the player controls a bee and is tasked with collecting pollen and bringing it back to the hive. On their way to clearings in the forest they will encounter dangers like wasps or strong winds.
If you want to take a closer look at the Code, I recommend checking out GitHub.
The first piece of code I wrote was the character controller. Since the player controls a bee in this game I took inspiration from flight controls, rather than grounded characters. The look direction is controlled in a separate script, which translates mouse input to the camera rotation and matches the players rotation to the camera.
Since I wanted enemies to be the main threat to the player, coding their behaviuor was the next logical step. I broke down the enemies into three distinct states, the default patrolling state, the aggressive attack state and a return state. The patrol state simply causes the enemy to fly in circles with a set radius, while the attack state makes them follow the player and try to collide with them.
To make flying around more interesting and challenging, I decided to add a stamina system. The player now has a stamina pool which is drainded by moving around. This forces the player to frequently return to the hive, where the stamina is refilled. if they do not manage to return, before stamina runs out, they will go game over and need to restart. Additionally I added a speed boost mechanic, which is unlocked after collecting a certain amount of pollen.
The points system is split into two counters, the points or pollen the player is currently carrying around and the pollen that have already been delivered to the hive. To transfer those points to the total points tally, the player needs to return to the hive. If the the player depositis 100 pollen in the hive, they win the game.
The final big piece of the gameplay were the wind traps. If the player collides with an object while affected by wind, they become stunned and move slower for some time.
The finished game can be downloaded and played on my Itch profile.

You may also like

↑Back to Top