Learn Python by Building a Snake Game under 10 minutes

Sdílet
Vložit
  • čas přidán 23. 06. 2024
  • building a classic Snake game using Python and Pygame. ive left comment explaining what each code does
  • Hry

Komentáře • 14

  • @VernaFeq
    @VernaFeq Před 2 dny

    love how you handled this topic, very insightful!

  • @bepositive271
    @bepositive271 Před 9 dny +1

    ahh man what an organized and beautiful code good work it also give me some insparation to also make my code organizable

  • @DinoBianco
    @DinoBianco Před 12 dny +1

    Great concept

  • @TrueAndrysqui
    @TrueAndrysqui Před 13 dny +2

    Nice video, just learned things that I didn't know about Python. However, the game as a little error. After you die if you try to play again you instantly die again.

    • @scriptsonneteer
      @scriptsonneteer  Před 13 dny +2

      i think its in direction change variables :x1_change and y1_change,when game restarts, snake is likely continuin to move in the same direction it was moving givin to an immediate end game. haven't worked on it just made it up and running, ill put it up on github

    • @TrueAndrysqui
      @TrueAndrysqui Před 13 dny +1

      @@scriptsonneteer Ok, thank you :D

    • @sahccv
      @sahccv Před 3 hodinami

      i fixed it by myself btw

  • @ahura9775
    @ahura9775 Před 13 dny +1

    Hey! Im new and cannot find where you've assigned 'snake_list' any value. at 1:25

    • @scriptsonneteer
      @scriptsonneteer  Před 13 dny

      its assigned and managed within the gameLoop function.

  • @bepositive271
    @bepositive271 Před 9 dny

    can someone explain at 1:26 how he coded that rectangle ??

  • @vipulbagde7184
    @vipulbagde7184 Před 13 dny

    no background audio

  • @MrSmart-tp8ko
    @MrSmart-tp8ko Před 12 dny

    Hi bro, which IDE do you use?

    • @scriptsonneteer
      @scriptsonneteer  Před 12 dny +1

      its vscode with some custom theme and edited over in premier pro