Java Tutorial How to Develop Game In Java ( Snake Game ) -

Java Tutorial How to Develop Game In Java ( Snake Game )

Awais Mirza
Views: 227071
Like: 2723
Best Javascript Book :

2nd Javascript Book :

Best Java Book :

Best Angular JS Book:

Best Angular 5 Book:

Donate Us:

Udemy Courses

AutoCAD Course :

Revit Course :

WordPress Course :

Java Game Development Tutorial. In this Video You will learn step by step how to Develop Snake Game in Java.

Facebook Group:


Solve Programming Practice Problems (Java):

Brick Breaker Game in JAVA:


  1. Wait, how do I stop the script from taking inputs?
    You can still move the snake after you lost

  2. Superb sir
    Explanation was very easy

    We want more games project

    Stay home stay safe


  3. Very helpful video. The only thing i found that could use some work is that there is a glitch at the end. Once you reach the game over screen, you can continue to move if you use the arrow keys. I know this video is 4 years old, but just thought i'd say it since i didnt see anyone else say it

  4. great tutorial, btw did you use Branch and BOund algorithm for this game?

  5. Sir i am having a problem after writing the right key function ,the snake is still not moving…ahead after pressing the right key ..
    can u plzz help y i am getting this problem ..

  6. Just finished watching… What a mind blowing tutorial!!! Thanks a lot sir. How to see more on your channel soon. Thank again !!!

  7. Sir I just watched it but the head is not showing and its also not moving

  8. Thank you for the effort bro. I have done this till 46 minutes and facing a problem. When i press up arrow the snake goes down and when i press down arrow key the snake just gets stuck in border somewhere. Please help

  9. Please help me as I am having a problem,
    At 15:26 when I tested the game myself, a window with a grey background appears without the snake title, background colour and boxes and I am unaware as to why this is happening as I followed all scripts properly. I am new to java, please help me

  10. There is nothing says addunimpliment method

  11. i am using netbeans 11.1 and cant copy the images into the java project and help?

  12. Really awesome bro,
    I did it and complete successfully
    Good explain, I am really impressed with your code.
    I am waiting for more video like this

    Bro, I got some error in this code
    While the game over if i press the up, down, left, right keys means it will resume the game

  13. sir it would be better if …..when the head of the snake collided with the body …itts tail should be removed from that part from which the snake ccollided

  14. can someone help me, in 48:13 on enemyxpos= , and enemyypos = the equal mark is marked with red and says "name expected after this token" … idk how to fix it.. i did everything he did

  15. Amazing You are the man FROM which I become software developer

  16. I haven't got the word "Snake" when I run

  17. where do you get the snake pictures I cant find any

  18. When it get over like 5-6 dots, there are some bugs regarding the repaint of it, when you turn, it can crash and repaint it self on the same line straight.

  19. Why my keylistener is not working, it's not reading keys im pressing

  20. Can you please share the source code of this game.??

  21. This code really works great……thank for teaching this code sir

  22. hey man great vid can you please reply with the the code for game over space to restart and the code for collecting coins and adding to the score i need it desperate for my course pleasee

  23. the code is great but their is bug in gameover that is one keep change the head and get out of the body then game start again with being restart else all is perfect

  24. score values are overlapping, ie stacking on old score by new one and can't see the score, how can we fix this? plz let us know… Thank You

  25. sir, I love your explanation do you have any courses on learning platforms for how we can build full projects or application in java or c++ or flutter

  26. Where can I find the resources and source codes used in this project..?

  27. which key did you press at 7:34 which made the asterisk before Gameplay at the top

  28. private int [] enemyxpos = {25, 50, 75, 100, 125, 150, 175, 200, 225, 250,

    275, 300, 325, 350, 375, 400, 425, 450, 475, 500, 525, 550,

    575, 600, 625, 650, 675, 700, 725, 750, 775, 800, 825, 850};

    private int [] enemyypos = {75, 100, 125, 150, 175, 200, 225, 250, 275, 300,

    325, 350, 375, 400, 425, 450, 475, 500, 525, 550, 575, 600, 625};

  29. Hi, thanks for the video, I really enjoyed it! I was wondering if you could explain how to increase the snake's speed with each snack eaten? I tried a few things but none of them worked so far.

  30. I can't get the graphics to draw, even though I have followed the tutorial line by line 😐 Any help please?

  31. hi sir I am learning java. now I am trying to create a snake game with java. But , after completion of my code still, the snake is not moving can you please say what's the problem?

  32. Why some time I got white color background, sometimes dark color background. Sometimes the program didn't work? thanks

  33. how can we download those snake icon assets?

Leave a Reply

Your email address will not be published.