Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aditya1404sal/pong_java
A simple Java Game which utilises concepts from OOP.
https://github.com/aditya1404sal/pong_java
Last synced: about 1 month ago
JSON representation
A simple Java Game which utilises concepts from OOP.
- Host: GitHub
- URL: https://github.com/aditya1404sal/pong_java
- Owner: Aditya1404Sal
- Created: 2023-01-23T08:13:06.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-25T16:37:18.000Z (almost 2 years ago)
- Last Synced: 2023-05-05T12:28:10.085Z (over 1 year ago)
- Language: Java
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PONG_JAVA
A simple Java Game which utilises concepts from OOP.
Disclaimer : This Game's code was heaviliy inspired by @GamesWithGabe 's Youtube playlist
link to it is here : https://www.youtube.com/watch?v=-uEFy0nPlgM&list=PLtrSb4XxIVborujf7DDM2MCi6yyMCw46dthe functionality has a few tweaks from the original buit
such as1)Player and Computer paddles having restricted access to both Right and left directions of their respective screen area
ie: positive and negative X-axis2)The Ball has updated physics logic which i'll explain in just a bit
so instead of the ball having a constant velocity of vx & vy
i made it so that the difference between the screen_width/2
and the ball's X coordinate is the factor by which the new velocity component Vx and Vy get multiplied by
so that when the paddles are far back the balls speed is maximun
and the closer the ball is to the centre the less is it's velocity.
thereby making the game more fun.i'm still trying to learn so feel free to criticise where needed. =)