Build a Snake Game in Java - QUICK and EASY TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 54

  • @dev_ression
    @dev_ression  Год назад +6

    What project should I make a video on next?

    • @unathinkuna7576
      @unathinkuna7576 Год назад +1

      Please type the code here 😭

    • @dev_ression
      @dev_ression  Год назад +1

      @@unathinkuna7576 code is on my GitHub!

    • @vivaanyadav1st
      @vivaanyadav1st Год назад +3

      Make a 3d Game using java without a Game engine

    • @ivanzq21
      @ivanzq21 Год назад +1

      Make a simple calculator 😊

    • @lorenceruiz176
      @lorenceruiz176 Год назад

      Can you make something good using an ide on mobile

  • @vish1585
    @vish1585 Год назад +8

    Your an absolute life saver bro I had to make game for my school coding project and you clutched up 🙏🙏

    • @dev_ression
      @dev_ression  Год назад +1

      Haha that’s awesome bro, glad I could help

  • @Onryo4444
    @Onryo4444 Год назад +1

    So cool! Gonna add a few personal touches to it such as changing the snake to a centipede and maybe putting some bugs around, but this is really helpful, thanks a lot

  • @IosebiGames
    @IosebiGames 11 месяцев назад +1

    Best tutorial of snake Game In java Ever! 🎮 ❤

    • @dev_ression
      @dev_ression  11 месяцев назад

      Thank you so much for watching :)

  • @theycallmerye3
    @theycallmerye3 Год назад +9

    Cool project. But I wish you would explain what the code is doing. Especially all those Imports at the beginning. 👍

  • @infermus11
    @infermus11 Год назад +5

    It's my first finished tutorial, game started at first try and I am happy so much. I understand the logic of this code, but still I have to learn a lot to be able to write something by myself. Do you think that using tutorials and making games that way and trying to understand it later is a good way to learn java?

    • @dev_ression
      @dev_ression  Год назад +3

      I’m glad this helped you! I think the best way to learn any programming language is to apply what you have learnt in a tutorial, on your own project. By doing this, your brain is actively working to remember what you have learned.

    • @infermus11
      @infermus11 Год назад +2

      @@dev_ression I hope you make more java tutorials and describe all blocks of code, so new ppl can understand it faster and easier :D

  • @GKhanbashi
    @GKhanbashi Год назад +4

    all the code works perfectly fine with no errors EXCEPT the last @Override in MyKeyAdapter class... it says method does not override or implement a method from a supertype. if i remove it i cant move the snake with the arrow keys, so what should i do?

  • @gord51808
    @gord51808 Год назад +2

    I did all of the code but it gave me errors I did everything correctly but it's not working because I'm on codehs

  • @-6ix559
    @-6ix559 10 месяцев назад +1

    If I wanted a reset option that reset score, snake length, and cleared everything that was drawn in the game over screen, how would I implement that? I saw something that showed repaint() and timer.start() though I dont know where to put those.

  • @kittan477
    @kittan477 Год назад +2

    Can I ask if this snake game has to apply a design pattern template?

  • @messerskuss
    @messerskuss Год назад +1

    Nice tutorial 💪💪

  • @zzzzzzz1696
    @zzzzzzz1696 Год назад +2

    Awesome thanks 😊👍

  • @effenymaecapalaran2950
    @effenymaecapalaran2950 Год назад +1

    I want to ask if what will happen if the snake bump into his body... will it also be game over??

  • @Hanacon-UwU
    @Hanacon-UwU 5 месяцев назад

    when i do as the README file said, the terminal said:
    "error: file not found: GameFrame.java
    Usage: javac
    use --help for a list of possible options"
    how can can i fix this ?

  • @Kksks208
    @Kksks208 6 месяцев назад

    i did perfectly the codes, but when i about to run its automatically in game over

  • @vitoriabrito4503
    @vitoriabrito4503 6 месяцев назад

    how can i add a restart button? and how can i put a maximum score?

  • @kennethlourisombrog2149
    @kennethlourisombrog2149 9 месяцев назад

    Are you a freelancer or a youtuber programmer only?

  • @dogesrules2264
    @dogesrules2264 Год назад +2

    it didnt work i had so many errors and for some reason when i wrote the colors they didnt have that font and blue color to it like in the vid

    • @dev_ression
      @dev_ression  Год назад +1

      Which IDE are you using? Also, are you sure you created a .java file and not a .txt?

  • @kennethlourisombrog2149
    @kennethlourisombrog2149 9 месяцев назад

    Nice Game

  • @ranuraouf8718
    @ranuraouf8718 Год назад +1

    Can you please help me with this error?
    Error: Could not find or load main class SnakeGame
    Caused by: java.lang.ClassNotFoundException: SnakeGame

    • @dev_ression
      @dev_ression  Год назад +1

      You could potentially have misspelled the class name

  • @LoboWarriorForever
    @LoboWarriorForever Год назад

    Why 3 files? Can it be done in one file?

  • @bindujabinduja7334
    @bindujabinduja7334 11 месяцев назад

    Sir i got errors snake was not search a food

  • @bafoonerysamurai6911
    @bafoonerysamurai6911 Год назад +2

    Can you do this project using visual studio code?

  • @usmanyahaya5607
    @usmanyahaya5607 11 месяцев назад +7

    This is not teaching

  • @RozaRisbayeva
    @RozaRisbayeva 7 месяцев назад

    Аааааа thank you 😘😘😘 I soo happy❤

  • @flexibleminded245
    @flexibleminded245 Год назад

    Instructions to run:
    WHY WE DO THIS? I AM BEGINNER
    1. Open terminal:
    First command: javac GameFrame.java GamePanel.java SnakeGame.java
    Second command: java GameFrame GamePanel SnakeGame
    Program will then open.

    • @dev_ression
      @dev_ression  11 месяцев назад

      this example is in an IDE

  • @FesiShopstore
    @FesiShopstore Год назад +1

    💌

  • @bindujabinduja7334
    @bindujabinduja7334 11 месяцев назад

    Please help me sir

  • @C-O-R-R-U-P-T-I-O-N
    @C-O-R-R-U-P-T-I-O-N 18 дней назад +1

    Huh, all this code for only a snake game ☠💀

  • @zielony1212
    @zielony1212 Год назад +1

    activate windows