Programming Snake Game in Java (fx) Tutorial

preview_player
Показать описание
We will create a simple snake game in Java fx. The whole thing takes only 25 minutes and needs 200 lines of code. I have used eclipse with the plugin e(fx)clipse.
If you like what you see, please leave me a like. :)

More information about how to install JavaFX:

Music:
Where I am from , Topher Mohr and Alex Elena

You can download the code here.:

Thank´s for watching! :)

#JavaFX #GameDevelopment #Snake
Рекомендации по теме
Комментарии
Автор

That's so wonderful 😁 keep up the great work

theartist
Автор

Very useful! Thank you for sparing your time on a GREAT video! liked and subscribed :) You should definetely do more videos. !

mustafasadir
Автор

Thank you so much, it's an awesome tutorial!! I hope you will make more cool stuff like this 🙏

bestvideosempireibve
Автор

Thank you very much bro that was great I hope there are more simple short game videos like this one.

mohamadnourbader
Автор

liked and subbed. Hope you make more video using eclipse and JavaFx.

richandfamousguy
Автор

The most simple and understandable code ever! Love it, perfect for beginners!

shengjiashen
Автор

thank you so much 😭 this is such an easy way to do a snake game 😭

mintyvonne
Автор

Great 😮!..it would be helpful if you build projects even in Android studio, thank you.

punyakoti
Автор

Hey there, as promised some feedback!
1. Great video, love this and please keep on doing!!
2. I'd wish to have some more explanation, why we are setting up what for you know?
+ My gameover method is somewhere wrong as the game ends after i pressed 2 different directions

FeedMeDaily
Автор

Hello! Nice video! How can i add "Best Score" Option for the best score you reached?

cyclonestv
Автор

anyone else run into several problems when trying to run in IntelliJ. Using JDK 1.8 for FX, and I don't normally have any issues

ninety
Автор

Hey, thanks for the really helpful tutorial. I had a doubt though...I couldn't understand what the 'cornersize' variable represents here

mihirchaturvedi
Автор

I did it in Intellij IDEA and I have an error "Error:(3, 1) java: class, interface, or enum expected" on a line "package application;". Please, can you help me to fis it?

rizabekutegenov
Автор

Hey can I somehow run this game from another class? For example I have a menu class with 3 buttons: new game, high scores and exit can I make it that the game runs when i press the new game button? I tried Main.main(); but it does not work. :(

numiriot
Автор

Hello, what is it mean by set snake in three parts.
snake.add(new Corner(width/2, height/2);
Is this line for positioning snake at the beginning?
Why do you have to do it 3 times?

xgwubbq
Автор

can we build it without javafx application cause it is a pain in the ass to process that one

t-mo_
Автор

how can i make a simple menu for this? like a start screen

williamhernandez
Автор

How do I make a jar file that opens the game?

Perturbadow
Автор

how can we do it in a way the snake can leave the field and emerge from the other side?

nxrsdi
Автор

When 2 keys are pressed quickly then snake collides with itself. Like if I press up then right or left, or down then right or left, same with left or right pressed first.
This can be seen easily when speed is reduced to 1.
Please help me correct this.

Also explain the concept of corner.

vimal