Learn Python by Building a Snake Game under 10 minutes

Поделиться
HTML-код
  • Опубликовано: 23 июн 2024
  • building a classic Snake game using Python and Pygame. ive left comment explaining what each code does
  • ИгрыИгры

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

  • @VernaFeq
    @VernaFeq 15 дней назад

    love how you handled this topic, very insightful!

  • @bepositive271
    @bepositive271 22 дня назад +1

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

  • @TrueAndrysqui
    @TrueAndrysqui 26 дней назад +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  26 дней назад +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 26 дней назад +1

      @@scriptsonneteer Ok, thank you :D

    • @sahccv
      @sahccv 13 дней назад

      i fixed it by myself btw

  • @DinoBianco
    @DinoBianco 26 дней назад +1

    Great concept

  • @ahura9775
    @ahura9775 26 дней назад +1

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

    • @scriptsonneteer
      @scriptsonneteer  26 дней назад

      its assigned and managed within the gameLoop function.

  • @bepositive271
    @bepositive271 22 дня назад

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

  • @MrSmart-tp8ko
    @MrSmart-tp8ko 25 дней назад

    Hi bro, which IDE do you use?

    • @scriptsonneteer
      @scriptsonneteer  25 дней назад +1

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

  • @vipulbagde7184
    @vipulbagde7184 26 дней назад

    no background audio