Create Snake with Python in 20 MINUTES!

  Рет қаралды 22,378

baraltech

baraltech

Күн бұрын

Пікірлер: 55
@baraltech
@baraltech 3 жыл бұрын
CODE - github.com/harsitbaral/Snake Subscribe for more content! Thanks for watching!
@BirdofHerm3s
@BirdofHerm3s 2 жыл бұрын
Best pygame tutorials I’ve found so far
@baraltech
@baraltech 2 жыл бұрын
Thank you!
@camilam.teszkiewicznovick8048
@camilam.teszkiewicznovick8048 15 күн бұрын
good tutorial man, ie subscribed and liked. good Luck with future projects!
@googlegoogle1610
@googlegoogle1610 3 жыл бұрын
wow, this is the greatest explanation
@baraltech
@baraltech 3 жыл бұрын
Thank you!
@Yo-mj8yq
@Yo-mj8yq 2 жыл бұрын
best tutorial ever, thank you so much for this content, please make more videos and more games
@baraltech
@baraltech 2 жыл бұрын
Thank you!
@JasonsGame
@JasonsGame 11 ай бұрын
this is a really good tutorial thanks bro you are underrated
@baraltech
@baraltech 9 ай бұрын
Thanks a lot bro
@victorpanashe8184
@victorpanashe8184 Жыл бұрын
Thank you so much, with that, I just made my first game✌
@baraltech
@baraltech 9 ай бұрын
glad I could help!
@N3id1
@N3id1 5 ай бұрын
how do i get the font?
@aylazer23
@aylazer23 9 ай бұрын
Isn't it more efficient to draw lines for making the grid
@ChickenSandwich-vi8bz
@ChickenSandwich-vi8bz 16 күн бұрын
i'm getting and error and i can't figure out why its saying "No file 'font.ttf' found in working directory".
@thequasarminedash4091
@thequasarminedash4091 Жыл бұрын
I have never found a tutorial that doesn't glitch. Right now it says this error message. No file 'font.ttf, 100' found in working directory 'C:\Users\yohaa'. Can you help me?
@PointTen
@PointTen 11 ай бұрын
Same for me, it says the font wasn’t found
@cringe.3997
@cringe.3997 8 ай бұрын
U can download the font from the description then save it to the same computer server that holds the pygame code file. It will then work
@LimeBytesYT
@LimeBytesYT 4 ай бұрын
Save the font in the same folder as the project file.
@NERDboiisanerdnerdnerd
@NERDboiisanerdnerdnerd 3 ай бұрын
How to save font
@llamaben29
@llamaben29 Ай бұрын
What does the NULL pointer error mean
@gamalielgerona2391
@gamalielgerona2391 6 ай бұрын
Great tutorial!
@baraltech
@baraltech 6 ай бұрын
Thank you!
@leylasadikh8012
@leylasadikh8012 Жыл бұрын
Hi I have a queston, if I wanted to add music to my game how would I do that
@gamalielgerona2391
@gamalielgerona2391 6 ай бұрын
I'm just a beginner but I know how music works.
@mariam_ah
@mariam_ah 2 ай бұрын
@@gamalielgerona2391 how is that helpful?
@popomasher
@popomasher 4 ай бұрын
I found a work around for this gettging the FONT errors and put in LargeText but now am putting the elif event.key, and I am getting no module for key? pygame.event.event' object has no attribute 'key' anyone else get that or know a work around??
@GeraldBosley-cf8ng
@GeraldBosley-cf8ng 11 ай бұрын
The if block to check for collision with self didn't work, and for some reason after I eat more than 4 apples the game glitches out and crashes. I followed the tutorial line for line.
@JasonsGame
@JasonsGame 11 ай бұрын
common errors dude I bet it had to do with your spacing like with tabs
@BiggestNoobalive_
@BiggestNoobalive_ 2 жыл бұрын
im very new to coding and idk why import pygame doesnt work
@baraltech
@baraltech 2 жыл бұрын
Check out my video on the topic: kzbin.info/www/bejne/gmbLh5uEjrRjhNk
@noobsteve9476
@noobsteve9476 3 жыл бұрын
Hello Lartech , Could u make a vid on coding mario in python(pygame module) please I would really appreciate it!!
@baraltech
@baraltech 3 жыл бұрын
Definitely in the future!
@noobsteve9476
@noobsteve9476 3 жыл бұрын
Okay tysm!
@pain7359
@pain7359 21 күн бұрын
what is this call the font.ttf
@maboo575
@maboo575 8 ай бұрын
while i'm lost in the perfect strom, thee show me the light, the beacon of heaven, spawn from the black sea. You show mw that it's not a perfect strom, it's just a programming class. I shall give you my own heart and soul to you as a cost to this life saving hack as the strom approching me name'computor programming class' .But now, now, my dear, you save me. so thank you
@baraltech
@baraltech 6 ай бұрын
This really touched my heart!
@walterwhite-l5h
@walterwhite-l5h Жыл бұрын
nice
@KnaniBody
@KnaniBody Ай бұрын
what is a rect
@rakhakurakura
@rakhakurakura 9 ай бұрын
how to paste the code in python???
@dongli4132
@dongli4132 7 ай бұрын
we do Ctrl + c for copy and Ctrl + v for pasting.
@LimeBytesYT
@LimeBytesYT Жыл бұрын
For some reason i cannot make the grid to work it shows me the pygame screen but without the grid. Code down below. import pygame import sys import random pygame.init() SW, SH = 800, 800 BLOCK_SIZE = 50 FONT = pygame.font.Font("font.ttf", BLOCK_SIZE*2) screen = pygame.display.set_mode((800, 780)) pygame.display.set_caption("Snake!") clock = pygame.time.Clock() def draw_grid(): for x in range(0, SW, BLOCK_SIZE): for y in range( 0, SH, BLOCK_SIZE): rect = pygame.Rect(x, y, BLOCK_SIZE, BLOCK_SIZE) pygame.draw.rect(screen, "#3c3c3b", rect, 1) draw_grid() while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() sys.exit() pygame.display.update clock.tick(10)
@Therealchessenjoyer
@Therealchessenjoyer 9 ай бұрын
7:08 it says my rect argument is invalid in line 40
@Hellmiauz
@Hellmiauz 5 ай бұрын
it's rect not Rect
@lioninaboxgames
@lioninaboxgames 11 ай бұрын
I really wanted to ask you something, so I'm not gonna leave a comment!
@kumaramit76
@kumaramit76 3 жыл бұрын
omg what the hell do you mean by "donot subscribe" D: i alr did should i unsub??
@baraltech
@baraltech 3 жыл бұрын
Haha I was just trying some reverse psychology I found online 😂
@kumaramit76
@kumaramit76 3 жыл бұрын
@@baraltech hahaha btw can you please please please make a video on how i can set up visual code it would be great help 😊
@baraltech
@baraltech 3 жыл бұрын
@@kumaramit76 Definitely in the future!
@kumaramit76
@kumaramit76 3 жыл бұрын
@@baraltech sure ill be waiting curiously :D
@kumaramit76
@kumaramit76 3 жыл бұрын
@@baraltech I request can you please tell me how i can make the terminal look clean when i run a program in vsc. i used pycharm before but it started giving me sdk error
@granpajestaz292
@granpajestaz292 2 ай бұрын
Nice try lol
@abhipatel4595
@abhipatel4595 2 ай бұрын
What?
@abdulrahmanabusharbain7507
@abdulrahmanabusharbain7507 5 ай бұрын
for 19:15 couldn't you just do self.__init__()?
Learning pygame by creating Snake [python tutorial]
2:05:00
Clear Code
Рет қаралды 370 М.
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 961 М.
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 26 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 81 МЛН
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,8 МЛН
Making a Game in Python with No Experience
5:57
Goodgis
Рет қаралды 1,7 МЛН
How I make bots using python (educational)
17:12
Kian Brose
Рет қаралды 559 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 814 М.
Make Pong With Python!
1:12:42
Tech With Tim
Рет қаралды 117 М.
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,6 МЛН
CODE WITH ME | Python Snake Game
15:36
CS Jackie
Рет қаралды 179 М.
ASMR Programming - Coding a Snake Game - No Talking
24:06
Servet Gulnaroglu
Рет қаралды 654 М.
The ultimate introduction to Pygame
3:47:58
Clear Code
Рет қаралды 3 МЛН
Code Snake Game in Python
35:34
Kenny Yip Coding
Рет қаралды 34 М.
IPHONE OR XIAOMI OR NOKIA?!!😂📱
0:33
Kan Andrey
Рет қаралды 3,4 МЛН
Не бойтесь экраны "водопады"
1:00
Бананикс
Рет қаралды 374 М.
Кто-то купил WinRar? #shorts #шортс #новости #факты
0:53
This is Хорошо
Рет қаралды 4,3 МЛН