Programming Snake Game in Java Processing Tutorial - playproduction.de

Programming Snake Game in Java Processing Tutorial

gaspar coding
Views: 20860
Like: 376
In this video we create a snake game in less than 60 lines of java code. This is a step by step tutorial and very easy to follow. I use processing for this. With Processing you can program in a simplified version of Java. If you know Java, you will understand processing immediately.

You can download the code here:

00:24 processing
01:29 create the window
03:45 create the snake
05:24 move the snake
08:05 control the snake
09:20 snakefood
10:21 eat snakefood
11:36 create a score
12:28 food color
13:37 increase speed
14:45 let the snake die
16:13 game over text
17:43 gameplay

If you liked what you saw. Please leave me a like on the video. Thanks for watching 🙂

#java #processing #snake

29 Comments

  1. Thanks for helping me how to make my first game in processing!

  2. how to write snake game by using sprites in JavaFx ? based on MVC(model, view and control) I am beginner and need help please?

  3. Nice tutorial! I'm surprised that I understood the code as a complete noob. It was very clear. Also can you make more Processing tutorials? A main menu tutorial would be great. thanks!

  4. hey u are my hero but listen can u make a seies of tutorials that will teach us concepts of java game dev so that we can make games instead of coping ur code or watching ur video

  5. cool. followed code word for word, but felt bad. Can you show the basics of game design in a different video?

  6. Its cool but in 4 mins the I afteevarray list its dont accepte

  7. How would i add a limit to the speed? Once it gets past like 3 or 4 speed increase if becomes too fast to play

  8. does the code contain classes? if yes how many?

  9. Hello, can you make the program work with 4 buttons of a virtual arduino instead of the keyboard, if so, could you please teach me

  10. key control no working ,
    immediately game start ,the game end
    , show game over

  11. You are a God.
    Thank you Thank you Thank you for this video and your work ☺️😊

  12. i was honest to god, going to start crying if i hadn't found this video. you are godsent

  13. A really good video. Very clear explanations, but I have 1 question. How do I make food not spawn inside of the snake? This seems to be happening way to often in late game when snake is already really long and it makes me angry.

  14. Awesome video
    How to find job vaccancy in this field i.e processing ? How to start preparing for this ? And what are the job opportunities in this field?
    Please reply in detail 🙏🙏🙏

  15. I’m having trouble with my code, do you think you’d be able to help me?

  16. hello, the code doesnt work on my netbeans IDE. can I know what app are you using and how to download it? Thankss

Leave a Reply

Your email address will not be published.