PONG Game, Java (fx) Programming Tutorial

preview_player
Показать описание
We are programming a PONG game in JavaFX. The whole game needs just 100 lines of code.
Eclipse is used as IDEA. If you like what you see, please leave me a like. :)

You can download the code here:

How to install JavaFX and Dark Theme for eclipse:

Thank´s for watching! :)

Music:

Pictures:

Thanks to william for the code inspiration
#JavaFX #pong #GameDevelopment
Рекомендации по теме
Комментарии
Автор

Hi Gaspar! This is a great tutorial, I wish you had all these up online 3 years ago when I started learning basics!
Great to help me move from C# to Java, very much appreciated, Danke! Maria :D

castingconversion
Автор

Sooo i also did your pong game: Great! You even explained a little bit more than with the snake game, i like that. Its cool to find such mini game tutorials, i personally would like them even better if i also could learn more. So you clearly know what you are doing, i dont :D I just follow you know? I know you do it for free and everything, just saying adding in a little extra value would boost. This is awesome for beginners, keep on doing, will return :)

FeedMeDaily
Автор

Very cool tutorial! Thanks for it, im a begginer and i wish in time to work as flawless as you do. Keep up the good work :)

sebica_bossu
Автор

Hello, I am a begginer and I have a doubt about the code. In 4:18 minutes you write the following code e -> run(gc). As a begginer I never saw this way to write code before. Can you explain to me how that works or at least show me some place where its explained? Thank you.

kuxoha
Автор

Yeahhh it works! Thank you so much! It was awesome for me

andreipolyntsev
Автор

Thank you so much dude. This game is sick.

Imzantheoriginal
Автор

This is a nice tutorial, but I think a few changes to the game would have been nice.

Firstly, no matter what you do, you'll always end up with the ball going from one corner to the opposite one. This means there isn't ever any skill needed, you just put your "bat" in whichever corner the ball lands and stay there for the entire game.

Secondly, I think the speed increase should be more gradual, the ball goes from comically slow to umplayably fast in 20 seconds. I think this one is easy enough for me to fix on my own though. Not sure what can be done about the first suggestion.

jacke
Автор

Amazing video and very well documented. Thanks a lot.

marufhassan
Автор

i am not able to set the background, how to set it?

paragcoimbatore
Автор

How could that game be made with multiplayer?

ricardorosas
Автор

Could you please make videos explaining Timeline Class thank you nice tutorial btw

arandomzy
Автор

dear Gaspar first of all thanks but did you create a simle fx project or this with the main method in it, and did you create a module cause i dont see anything aside, and what is the application c ect ect, cause its not running ang gives me Exeptions,
thanks for the hopefully soon reply

jasminamina
Автор

Someone please tell me which e editor is that??

jhonnydepp
Автор

What does the "e" mean whenever you type "e ->"?

mnmproductions
Автор

Why are there red x icons next to a lot of my code and won’t open up the application when I run it

VirusFusion
Автор

This code run on IntelliJ IDEA, software?

veereshmenasagi
Автор

bruh... the paddles go off screen, the ball's y velocity never changes past 1 and -1 so you can just stay in the same spot...

elbozo
Автор

My friend, you can show in the next video how to write a simple notepad (text editor) in Java FX with the ability to save. (thank)

djagerd
Автор

Is it Enterprise Java Developer Editor or Basic java editor?

ritaviksakpal
Автор

Can anyone explain I get an error:
Cannot resolve method

bagzhansadvakassov