Комментарии:
I can´t run the code,I think it´s because the javax.swing feature is not working, but I´ve written it exactly how you did, so I am confused a little bit.
Sorry if there is a mistake on my side, but I´d be really happy if you could help me with that.
I set up Java in vscode like you in your tutorial, but I could´ve done a mistake, so I please help me if you can.
Also thank xou for creating videos like this.
Thank you for the helpful video
ОтветитьQuestion: Why do you need to declare all the stuff for the frame. and then declare stuff again in another class so it can be drawn on?
ОтветитьThe best way to appreciate you is by Subscribing. Thanks for this video. Can you please create a soccer game development tutorial.
ОтветитьThanks for the latest info.
ОтветитьAI:🗿🗿
ОтветитьReally cool. Thanks
ОтветитьObrigado que tutorial incrível, ficou muito bom esse jogo. Assisti vários vídeos de como criar um jogo da cobrinha, e eu percebi que existe várias inúmeras maneiras de fazer um jogo mesmo sendo parecido, más com instruções diferentes, Obrigado vc explicou muito bem .
ОтветитьCan we do this in scanner class?
ОтветитьDo you have javafx experiance, it is possibile too? Snake game?
ОтветитьJust did the project and it did help me clear my java fundamentals!I just had one idea,how can I increase the speed of the snake each time it eats the food?
ОтветитьThank you for this video, it help to learn how write java code :) !
I try tobuild a restart function after a game over. For exemple, when you press the space key, it restart the snake game. I failed but, can you advice or give food for thought please ?
Thank you in advance.
I tried this :
boolean restart = false;
public void keyPressed(KeyEvent e) {
...
// restart function
if (e.getKeyCode() == KeyEvent.VK_SPACE && gameOver) {
restart = true;
}
}
@Override
public void actionPerformed(ActionEvent e) {
...
if (gameOver) {
gameLoop.stop();
if (restart) {
gameOver = false;
gameLoop.restart();
}
}
}
the best snake video on entire you tube
ОтветитьThank u <3
ОтветитьThank you so much TTTOTTTT i really needed this for our final project
ОтветитьDoes this code work on BlueJ too?
Ответитьthanks for explaining all the complicated parts! really helped me out a lot!
ОтветитьThanks! you have a knack for story telling, which is good for in this line of work (media).
ОтветитьAwesome
ОтветитьThenks bro i love you
ОтветитьHello Kenny, I am wondering why when I type in line #9.....frame.setVisible (true);
and line #11....frame.setsetLocationRelativeTo(null);
a "b:" and a "c:" are added automatically to the "true" and "null" like (b:true) and (c:null).
Is it there an "auto-correction command" in the VS that I can deselect?
Wonderful videos and thanks for teaching me VS and Java.
thankss
ОтветитьThank you for this video. it was very helpful and understandable.
Love from India ❤❤😊😊
he i like you but java dont and thank you for letting me see thise because now i now java is not a fit form me but a fun learning experiense (love ur vids btw)
ОтветитьIs there any idea how can I put a button that says "Start Over" and the game resets from the start again. When u lose, u have to close and run it again, wonder how can I do that, beginner btw peace.
ОтветитьI get a bug on line #22 "Tile" snakeHead variable. I only get the "TIle" as abc
**Resolved.
The class path was misspelled.
THANK YOU this helped me make a java game for the first time YAY
ОтветитьUSLESS FUCKING TUTORIAL I CANT FUCKING RUN THE GAME AFTER THE LAST FRAME CODE LINE FUCK YOU YOUR GIVING FAKE TUTORIALD BITCH
Ответитьwhat if I want to change just the color of the snake head? how can I do that?
Ответитьi can't understand why the tile move along with snake head, help me guys!!!!! it's been a day
ОтветитьAmazing Tysm I’m making this tm can’t wait 😊
Ответитьcan you let me know if you implemneted any data structures if so then how many ?
ОтветитьGreat video
🙂
can u make this game multiplayer like the same game panel has 2 snakes and they can colide to each other and compete to eat the same apple
ОтветитьHow I move the snake😢
ОтветитьBro i will break the pc after the second imports they delete after the last 😡🤬
ОтветитьIf the score is zero and it hit the wall then the program not showing any game over string on the screen. could you fix it?
Ответитьis it possible to run this in blueJ ?
Ответитьthanks alot for your effort but i have a little suggestion could you please plan the project before we start coding this will make the vision clear and give us the opportunity to think first how to implement the ideas and think about what components to use .and again thanks for your great effort ❤❤
ОтветитьYou missed one condition in placeFood(). Food should not be placed where snake body is :)
ОтветитьThank you for showing it with the native Java functions without all the cumbersome libraries loading.
ОтветитьThese videos are like the next generation coding tutorials. Very clear and useful. I have never seen clear project tutorials like this. Great, smart and professional work. 😊❤
ОтветитьThanks Kenny. That was fun to make. I learnt Java years ago and have forgotten most of it - so to have a well-structured tutorial taking me through writing the code step by step helped. Based on my level of enjoyment, I'm going to both like this video and subscribe to your channel! :)
Ответить