CODE - github.com/harsitbaral/Snake Subscribe for more content! Thanks for watching!
@BirdofHerm3s2 жыл бұрын
Best pygame tutorials I’ve found so far
@baraltech2 жыл бұрын
Thank you!
@camilam.teszkiewicznovick804815 күн бұрын
good tutorial man, ie subscribed and liked. good Luck with future projects!
@googlegoogle16103 жыл бұрын
wow, this is the greatest explanation
@baraltech3 жыл бұрын
Thank you!
@Yo-mj8yq2 жыл бұрын
best tutorial ever, thank you so much for this content, please make more videos and more games
@baraltech2 жыл бұрын
Thank you!
@JasonsGame11 ай бұрын
this is a really good tutorial thanks bro you are underrated
@baraltech9 ай бұрын
Thanks a lot bro
@victorpanashe8184 Жыл бұрын
Thank you so much, with that, I just made my first game✌
@baraltech9 ай бұрын
glad I could help!
@N3id15 ай бұрын
how do i get the font?
@aylazer239 ай бұрын
Isn't it more efficient to draw lines for making the grid
@ChickenSandwich-vi8bz16 күн бұрын
i'm getting and error and i can't figure out why its saying "No file 'font.ttf' found in working directory".
@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?
@PointTen11 ай бұрын
Same for me, it says the font wasn’t found
@cringe.39978 ай бұрын
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
@LimeBytesYT4 ай бұрын
Save the font in the same folder as the project file.
@NERDboiisanerdnerdnerd3 ай бұрын
How to save font
@llamaben29Ай бұрын
What does the NULL pointer error mean
@gamalielgerona23916 ай бұрын
Great tutorial!
@baraltech6 ай бұрын
Thank you!
@leylasadikh8012 Жыл бұрын
Hi I have a queston, if I wanted to add music to my game how would I do that
@gamalielgerona23916 ай бұрын
I'm just a beginner but I know how music works.
@mariam_ah2 ай бұрын
@@gamalielgerona2391 how is that helpful?
@popomasher4 ай бұрын
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-cf8ng11 ай бұрын
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.
@JasonsGame11 ай бұрын
common errors dude I bet it had to do with your spacing like with tabs
@BiggestNoobalive_2 жыл бұрын
im very new to coding and idk why import pygame doesnt work
@baraltech2 жыл бұрын
Check out my video on the topic: kzbin.info/www/bejne/gmbLh5uEjrRjhNk
@noobsteve94763 жыл бұрын
Hello Lartech , Could u make a vid on coding mario in python(pygame module) please I would really appreciate it!!
@baraltech3 жыл бұрын
Definitely in the future!
@noobsteve94763 жыл бұрын
Okay tysm!
@pain735921 күн бұрын
what is this call the font.ttf
@maboo5758 ай бұрын
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
@baraltech6 ай бұрын
This really touched my heart!
@walterwhite-l5h Жыл бұрын
nice
@KnaniBodyАй бұрын
what is a rect
@rakhakurakura9 ай бұрын
how to paste the code in python???
@dongli41327 ай бұрын
we do Ctrl + c for copy and Ctrl + v for pasting.
@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)
@Therealchessenjoyer9 ай бұрын
7:08 it says my rect argument is invalid in line 40
@Hellmiauz5 ай бұрын
it's rect not Rect
@lioninaboxgames11 ай бұрын
I really wanted to ask you something, so I'm not gonna leave a comment!
@kumaramit763 жыл бұрын
omg what the hell do you mean by "donot subscribe" D: i alr did should i unsub??
@baraltech3 жыл бұрын
Haha I was just trying some reverse psychology I found online 😂
@kumaramit763 жыл бұрын
@@baraltech hahaha btw can you please please please make a video on how i can set up visual code it would be great help 😊
@baraltech3 жыл бұрын
@@kumaramit76 Definitely in the future!
@kumaramit763 жыл бұрын
@@baraltech sure ill be waiting curiously :D
@kumaramit763 жыл бұрын
@@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