11 Comments



This is the last part! All done!

Although it might be a fun game to play, it’s even more fun to code. If you just followed along without coding, I suggest you go back and actually code the game. Trust me! You won’t learn if you don’t actually do it!

A quite simple Pong-like game. This part we will be dealing with the keyboard input.

I will be putting this video in my Coding Games playlist. I’m going to be programming a bunch of classic, fun arcade games like Snake, Minesweeper, Meteor Rush, Tic Tac Toe…etc. A lot of game development in the Java programming language for sure. I will be using the Eclipse IDE most of the time. These are coding for beginners tutorials. However, all coders are welcome! I post more in-depth explanations on my website if the video is not clear.

Commented code is open-source and available on my coding website linked below. Follow me on all social media platforms while you’re at it!

Thank you for watching!

Website:
Twitter:
Instagram:
Facebook:

Don’t hesitate to contact me if you have any suggestions or advice!

Nguồn: https://partnersinsublime.com/

Xem thêm bài viết khác: https://partnersinsublime.com/game/

Author

meeylandofficial@gmail.com

11 thoughts on “Coding a Simple Pong Game in Java with Eclipse Part 4

  1. hey coding heaven in part 2 of this game development the ball doesn't change direction when it hits the top & bottom wall what do I do ?

  2. Hey, my code is exactly the same as yours but my ball as well as my paddles are way too slow.
    Can you help me with that?

  3. I would like to say amazing job here it really helped me out a lot, but I have a question for me the collisions between the ball and paddle don't work most of the time the ball just goes straight through the paddle and on the off chance they actually collide, I know that it was probably me that has mistaken something but I would like to know if you know why the ball is just going straight through the paddle after that everything else works perfectly fine

  4. Hey, thanks so much for this video . I really appreciate you doing this, I most defiantly will spread the word about you!

  5. Can someone please help me in finding the mistake.I wrote the same code but seems to me that KeyPressed function is not even getting called. So my paddle is not at all moving.What is the solution for this.

  6. Hi man…Are you going to make other tutorials like this one? Because i have noticed that you are the best one making this kind of tutorials for beginners… Really appreciate your work, thank you so much!

  7. Hey! You can format the code in eclipse by using the following command : CTRL + SHIFT + F . Make sure you select the code which you want to format.
    Thanks for this great tutorial 🙂

  8. Thanks man, it's a great tutorial. I have a project at the university where I have to do the Submarine Attack game. Thanks to your tutorial I understood many things. I really appreciate your work. Keep it up. Thanks again!!!

Leave a Reply

Your email address will not be published. Required fields are marked *