This is my first post this term and it primarily focuses on my development during the first few weeks, my introduction to coding in Unity, and some testing including creating a ball that bounces and spirals. I'll also demonstrate my intentions for a few snippets of code for future Unity projects.
The first thing we were taught and tasked to do was to make a sphere move in certain vectors at certain speeds which would make the sphere act as if it was boucing around an invisible room. We then made it so that the ball would change to a random colour everytime it changed direction. 

The code to make the sphere move and change colour.

We were then tasked to make "Pseudocode" for pacman. Pseudocode is a set of instructions or images that are used to show an idea of something or to show a step by step process of how to do something, it is "a notation resembling a simplified programming language, used in program design."

Paper Pacman and Ghosts.

These four paper cutouts are meant to depict the characters that would be in the game. The ghosts will chase the yellow character around a maze (that can be seen below). You, the player, would control the yellow character and try to collect little items from around the maze without being caught by the ghosts.
We then took moving the spheres to another level and made the spheres spawn in and move in distinct patterns as if it were an animation. We did this through the use of code, the spheres are following a maths based pattern to make very accurate spirals.

Script to spawn the spheres.

Script to move the spheres.

You may also like

Back to Top