Programming Simple Snake Game in Java Eclipse

preview_player
Показать описание
Programming Simple Snake Game in Java Eclipse for beginners
Рекомендации по теме
Комментарии
Автор

Thank you very much for this tutorial. It helped me a lot understanding the basics.

metabeen
Автор

though it took me 4 hours to write the entire code, but all worth it. thanks a ton man!

anubhashukla
Автор

Thanks to you, I understood the game loop :C

queenskeleton
Автор

Thank you man!! I just modify some lines in uptdate() so that the snake doesnt disappear at all from screen:

if (head.getX() < 0) head.setX(WIDTH - 10);
if (head.getY() < 0) head.setY(HEIGHT - 10);
if (head.getX() > WIDTH - 10) head.setX(0);
if (head.getY() > HEIGHT - 10) head.setY(0);

asantanao
Автор

nice video.i got the output.thank you

harshithabachu
Автор

Now do programming GTA V for beginners.

maniago
Автор

sir, please upload more videos by using java.thanks sir

nagalakshmipenchikala
Автор

How did he highlight "setFPS" at 5:41?

maniago
Автор

Which part changes the position of the body???

SMILE__
Автор

Can you make a video on how to make a shop were you can spend the Score = Points

JaredVititoe
Автор

is there a tutorial somewhere about how rendering works?(I don't need a full tutorial on a game or anything, I just want to know how I could maybe set pixels on a screen)

legend
Автор

sir i am weak in mathematics but my concepts about in programming is great so that my main concern is mathematics that you have used in Brick Breaker Game. so could you please tell me which topics i need to cover to improve my maths ability. not just Ashraf Khan please replay please reply anyone who can help.

shaikhzoyeb
Автор

To be able to reset the game without having to close the window add this line to "public void KeyPressed(KeyEvent e)" and also the the "keyReleased"

add this line - "if(k == setUplevel();"

If you want to be able to reset the game even if you are not dead (gameover), just take out the "&&gameover==true" part in the IF- statement.

Spam-lofu
Автор

when I got to running the program with the black background around the 11:48 mark, there was no black background. Eclips didn't say that there was an error, or give any indication that anything was wrong. I followed this tutorial exactly. So my question is, what would my mistake have been?

lorddorsey
Автор

Hi everybody!. Thanks for the video. I have a question. How can I replace the rectangle in Entity class for a Circle? Thanks in advance. Regards.!

EmprendeRicoEmprendePobre
Автор

i have a question and i hope you understand and help me... My snake "drives" away (with drive away i mean that every time wenn i press W A S or D my snake shrink and i can't move it anymore). In eclipse is no error shown

lk
Автор

I don't know but, to be honest... it's not really helping me since there's no audio. Probably you should've explain more about what you do.. Literally why should you do that and this. Why can't it be any other ways around or else...

triparadox.c
Автор

anyone know how to add an image to the entity class instead of just a rectangle?

eamonnbutler-rees
Автор

when ever i use VK for java none of my keys work. Is there a way to fix that?

ericbarron
Автор

Scusa avrei bisogno del tuo aiuto per una cosa...
ho installato Eclipse, java e altri programmi per fare ruunnare i codici che scrivo.
Non capisco perchè però ogni volta che premo "run" mi dice "the selection cannot be lunched, and there are no recent lunches" mi sapresti dire perchè?

frankymaca