
Snake game in python pygame [Hindi] – 1. Intro and create surface | Hindi Python project tutorial
codebasics Hindi
Views: 34109
Like: 860
In this pygame tutorial we will build a snake and apple game. This Hindi python project for beginners is perfect for you to get exposure on how you can build end to end python project after learning basic tutorials. In this video we will build a pygame surface and draw a block that can be moved using up,down,left, right arrow keys.
Code:
Final code for complete game:
Hindi playlist for this snake game: –
English playlist for this snake game:
Python tutorials (first 16):
Python Hindi tutorials (first 16):
Website:
Facebook:
Twitter:
11.01.2022
Sir , when i type block = pygame.image.load("resource/block.jpg").convert() surface.built(block, (100,100)) this line then baground was not showing and block also not formed Sir please HELP!
Sir kya custom snake le sakte hai
Up clouding class detehe
Can I use Android mobile phone for python programming for these projects??
Thank you sir….🙏🙏🙏
Amazing work sir. So, well explained. I am really glad that I found your channel. Please bring more such projects. Thank you soo sooo much!!
THANK YOU SIR…… maza agia… 🙂
Thanks for back again.
Sir plz continue ML Series.
Thank you so much sir For making these Videos
Great sir please ml ke sare contact Hindi me complete kar dijiye .
Bhut helpfull rahega ham logo ke liye
game ko mobile game kyo nahi bana sakte ?
pygame se koi game bani he jo pc me kheli jati ho? because no one talking for pygame for game devlmp in python Y?
I used to watch your english videos earlier but today heared your Hindi..Nice to hear you in Hindi. Thank you
Thank you so much Sir such a brief explanation .I'm really enjoying
Thank you sir ☺️😊… I am in 8th standard and I really enjoyed making the game. Really excited for upcoming tutorials. But sir how can I download pycharm on windows 10.please reply to my comment it matters me a lot.please reply sir and I have watched your python tutorial videos after watching them I made my own game know as "flappy bird".
Super awesome
Sir please reply on skill basics website I have a doubt on snake game part 1. Please reply it matters me a lot. I have enrolled your python project course. it is really good and comfortable. I have a doubt so please solve it. Just reply my doubt and clear it please. And I even know your name. Your name is very nice. Sir please go into website and check it please….🙏🙏🙏.
SIR, can we do it without using pycharm editor ?
sir meri block image resources se load ni ho pari
Dhaval Bhai, I like your way of teaching, do u have a comparison on which GUI module to select and why (pygame, tkinker, pyqt5, etc) Bhai konsa or kyu use karna chayea?
Pip install pycharm Kuch samja Nahi ??
Suggestion : Please use a theme which has good contrast level, I have to stress my eyes in order to see things properly. 🙂 Anyways really love your videos keep making more videos in hindi.
mujhe ek dikat aa rahi hia jab run kar rha hu to show kar ha hai error
.
I install the images and Iconvert images in pycharm
Sir ji..
You are great.. I love it
Thanks for sharing awesome content👍.
Thanks sir this helped 😊😊😊😊😊😊
Image ka path kaise diya h main vscode use kar r hu
Please share proposal
Hello sir,
When I load image of snake/apple then it displays very big in size with black background instead I use PNG image..
Can u tell me what's the issie
Thank you so much sir 🙏🥰
sir jb me block image file import kr raha hu to filenotfound ka error aaraha hai….me path acche se de raha hu but frr bhi error aarha hai plz help sir
sir plz iska solution bataiye ….sbko problem ho rahi hai images import krne me plz
Sir I have a doubt. Just like in case of block, you gave it's address. Can we do the same for background? Like some image or some background, we just give it's address? Can that happen?
is it good for cv
Very helpfull thaks ..
work in Python real project .. pls sir
bhiya run kaise kare
1:15 i am in 5th standard only btw i am a kid 😂😂😂
Great sir
His voice is similar like khatarnaak onespot
Sir mera image error bata raha hai.
Ke raha hai
No such file or directory vo block ke liye
Hi sir when I am trying to debug I am getting an error that: No module named 'pygame' but when checking in the terminal I am getting: (base) [email protected] main.py % pip install pygame
Requirement already satisfied: pygame in /Users/navojitbasu/opt/anaconda3/lib/python3.8/site-packages (2.0.1)
Also, there are few more errors like
Unresolved reference 'KEYDOWN'
Unresolved reference 'K_ESCAPE'
Unresolved reference 'QUIT'
Bhai hiw to add block image
sir jo window he vo ruk hi nahi rahi he …, apne aap chali jaa rhai he kya karu
good
Thankyou so much sir. You and Krish Naik are the best teachers ever i seen
make it interesting explain with infotainment
How to import pygame ..?
Nyc sir muje Koi ashi game develop bta do jisme coading km ho