Pong
In 2-player mode, up arrow and down arrow are used for control of the right paddle. In both game modes, W and S are used for control of the left paddle.
References
The following sound effects were used in the game:
- https://freesound.org/people/alanmcki/sounds/400579/ - Sound effect upon winning the game
- https://freesound.org/people/NoiseCollector/sounds/4359/ - Sound effect upon hitting a wall
- https://freesound.org/people/NoiseCollector/sounds/4382/ - Sound effect upon hitting a paddle
- https://freesound.org/people/Xiko__/sounds/711249/ - Sound effect when the ball flies off the screen
The following snippets of code were used in the game:
- Various code snippets from KIT109 Tutorials 2-5 were taken, for a wide variety of purposes, such as keeping a score, scene switching, determining when the game should end, player movement and more.
- https://discussions.unity.com/t/delay-ontriggerenter/619227/2 - A cooldown timer, adapted for use when the ball collides with a paddle, the cooldown making sure it only awards 1 point when the collision occurs.
- https://discussions.unity.com/t/convert-screen-width-to-distance-in-world-space/... - Converting pixel size of the screen to world coordinates, used to ensure the paddles are a specific fixed distance from both edges of the game.
| Updated | 11 hours ago |
| Published | 1 day ago |
| Status | In development |
| Platforms | HTML5 |
| Author | FlynnUTAS |
| Genre | Sports |
| Made with | Unity |
Development log
- Assignment 1 - Pong11 hours ago