KIT109 Assignment 1 - Pong Clone game


Features:

One feature that I consider basic and appropriate at this stage were to include audio sources and files, initially set disabled on awake. Once a collision either with paddles, roof or floor or a goal was scored, reproduced different sounds to give the sensation of o more real hit from a solid ball and  achievement after scoring one point. 

Another aspect was to solve the issue of paddles leaving the display, so I considered using the "Mathf.Clamp" function to set coordinates for a new Vector 2 that gives a bit rudimentary but efficient sensation of recoil when paddles hit the roof or floor.

In order to simplify the scoring I decided to use the GUI.Label method that allows a basic but efficient customisation of this aspect.

Finally, the final touch I consider unique about this build is the use of sprites of my ownership and edited  via sprite editor.

Things to Improve:

Some extra work can be done to improve some details, particularly the PlayerPrefs string saving that was unsuccessful for this assessment, and using more efficient ways to make use of the physics system integrated in the Unity engine.

References:

The following references were used as sources of assets and code structure:

- Euphoric, N.(2012, December 31). up/down with arrow keys. Unity forumsup/down with arrow keys - Unity Forum

- Joseph, B. (2020, January 7) How to Make a 2D Pong in Unity 2020 - 4. Ball Bounce [Video file]. Youtube.  How to Make a 2D Pong in Unity 2020 - 4. Ball Bounce - YouTube

- ping pong single ball sound effect (n.d.). Ping pong paddle hitting ball sound effect. http://freesoundeffect.net/sound/ping-pong-paddle-hitting-ball-sound-effect

- Envato Elements.(n.d).Fairy arcade sparkle .https://mixkit.co/free-sound-effects/happy/

- FeffDog11111.(2016, March 24). Playing audio on collision. Unity legacy topics. 

https://discussions.unity.com/t/playing-audio-on-collision/161497/2

- SilverTabby. (2011, June 29) How to set the font size in GUI.Label. Unity legacy topics. 

https://discussions.unity.com/t/how-to-set-the-font-size-in-gui-label/24015/2

- ping pong single ball bounce close 1 sound effect. (n.d.) ping pong single bounce sound effect. http://freesoundeffect.net/sound/ping-pong-ball-bounce-close-1-sound-effect

- Joseph, B. (2020, January 7) How to Make a 2D Pong in Unity 2020 -6. Ball Speed[Video file]. Youtube. https://www.youtube.com/watch?v=6XPzc1TfhE0

Note:

No aid from AI algorithms was used in the elaboration of this project (e.g., openAI-ChatGPT, Copilot, etc).

Files

Pong Clone Play in browser
Jul 29, 2023

Leave a comment

Log in with itch.io to leave a comment.