Background
As part of my A-Level Computer Science course I wished to create a artifact for my project that was a game. I wanted to learn the basis of another programming language using the knowledge of programming fundamentals I had learnt with learning C++.
Summary
This aim of the game is to survive as long as possible on the planet scoring points. The player accumulates points based on the number of seconds they have survived multiplied by the multiplier. The multiplier starts at one and increments based on how many waves of obstacles the player has survived. The termination mechanic of the game is when the player hits the obstacles which are despawned and respawned in random positions every five seconds.
How I built it
This project was built within the Unity IDE with its API using C#.
Challenges I ran into
The main challenge was the faux gravity principle that I had to implement to act on the ball to pull it towards the planet. I did this by determining the tangent of the position of the ball that is closest to the planet and applying a force towards the centre of the planet so that it would rest
What I learned
Here I learned how to use the Unity Scripting API and how to use C# with it to produce scripts that would work together to perform complex tasks. I learnt the concept of instantiation within object-oriented programming when creating a group of objects. Furthermore, I also learnt how to use documentation files to find the prerequisites for using certain methods and how to adapt code from online resources such as Stack Overflow
Built With
- c#
- unity-api

Log in or sign up for Devpost to join the conversation.