Sponsorship

Ping - Pong game using ' Java '




===  Ping - Pong game by " ROHITH " :  ===



       ✨   - Built with JAVA , [ IDE used " Eclipse Enterprise Edition" ] -    ✨


    I recently came up with an interesting game project . It's a ping pong game on your computer . The screen for ping pong game is provided below with images . this game is powered with java & javac . The game currently use one byte per tile and one word per string for the score . A variation could have just one word per string .


   For the code , see my ping pong package source provided in Github down below .
Currently the minimum version is 1.4.2 but higher versions are not needed .
If you can't see or getting link error , try reloading your browser .

[ update to 1.5 and 1.6 ] . the source code has been updated to 1.5 and 1.6 . The core code has also been updated .






    Ping pong game using java contains 6 classes ( it's up to you for creating your own classes and coding it ) . The main class is the game which represents the ping pong game with grid board of 64 tiles . The game is constructed with two phases :


1 - Patching the board .
2 - storing the score .


This game contains 6 classes : [ given below ]

  • PongGame.java
  • GameFrame.java
  • GamePanel.java
  • Paddle.java
  • Ball.java
  • Score.java


Note : These classes are mentioned because it will be easy and no confusing when writing a code .




Each of the classes are given below with images.



  • PongGame.java :





  • GameFrame.java :





  • GamePanel.java :





  • Paddle.java :





  • Ball.java :





  • Score.java :





  • Output of the game :





   [ Therefore this is the overall game project with different classes and output is shown ]





   If you have any issues with the program , just comment me to this post -[ I will be giving reply within 12hrs ].




   Note : If you are not following on my LinkedIn , Check my LinkedIn profile which is provided in Other links section ]







=====  GitHub Link :  =====

Source Code :

( clickable link )




====  FOR MORE INFO : ====

Email :

( clickable link )




















THANK YOU  !

No comments:

Post a Comment

Translate

Android App