Get Started in Pygame in 10 minutes!

  Рет қаралды 252,034

Coding With Russ

Coding With Russ

Жыл бұрын

In this video I will explain how to get started in Pygame from scratch.
This is aimed at those who have not used Pygame before and will go through the steps of installing Python, installing Pygame as well as looking at a few different editor options.
Then I will explain the basic structure of a game and put together some simple code to demonstrate this.
Take a look at the tutorial on my website for a written version here: www.codingwithruss.com/pygame/...
Editors mentioned in the video are:
IDLE
Sublime Text (This is the one I use most)
VS Code (I have started using this one more recently)
PyCharm
Atom

Пікірлер: 341
@CodingWithRuss
@CodingWithRuss Ай бұрын
If you are getting an error like "no module named pygame" or "pip is not recognised", then there may be an issue with your python install. This short video shows how to fix those errors: kzfaq.info/get/bejne/Zt6PgKh815azeoU.html
@confidenceart12
@confidenceart12 17 күн бұрын
You haven't had your python run to paths
@PyroProtato
@PyroProtato 5 ай бұрын
Genuinely, you’re a lifesaver. I was stressing so much about the complexity of Pygame, but this tutorial gave me such a good start. Thanks!
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Glad it helped!
@ChrisMaster2
@ChrisMaster2 4 ай бұрын
I've made FlapPy Bird, but it was from a sample. Now, I'm watching this video to truly learn.
@Girduzz
@Girduzz 7 күн бұрын
I’m trying to make Tetris and you helped me a lot
@user-uc6sg4gy3f
@user-uc6sg4gy3f 2 ай бұрын
I've been studying Data Analytics and been skipping Python so much to learn other things due to the Syllabus, and I really wanted to go back to learn more about the functionality of Python for other things. This tutorial made it fun, with concepts I am familiar with, but just focusing on other cool things we can do with Python. Thank you so much! It lightened my face and made my day.
@fumainc.4403
@fumainc.4403 6 ай бұрын
I can say as a beginner to pygame and pythoon as a whole. This was a easy tutorial to follow.
@cloudedpotatoplays919
@cloudedpotatoplays919 2 ай бұрын
I started using Python for my work as a scientist and now I can also use if for my passion of games :D thank you alot for this introduction!
@theafro
@theafro 4 ай бұрын
Brilliant! this is what a tutorial should be, neither over nor under-explaining. (and now I have a natty little red box on my screen and i'm going to make it eat things now!)
@Animalistic_
@Animalistic_ Жыл бұрын
Im following your platformer tutorials they are great! I started coding 9 daysa ago and they are easy to follow and awseome! at school we were learning about print('hello world') and its so cool seeing myself progress with your tutorials as you explain whats happening so im learning not just copying thanks you so so much your awsome
@CodingWithRuss
@CodingWithRuss Жыл бұрын
That's great to hear! Glad you are enjoying the tutorials.
@yvonnevarley6351
@yvonnevarley6351 8 ай бұрын
Hi, Russ! Thanks for this. FYI, in Thonny, you have to capitalise the True and False in the code for it to work.
@igoratagyan6664
@igoratagyan6664 4 күн бұрын
Great tutorial, thank you very much! I played the final result for about 15 minutes!
@CodingPiratesHillerod
@CodingPiratesHillerod 4 ай бұрын
One of the best explanations of the needed basic elements to start a Pygame project. Thanks a bunch!
@CodingWithRuss
@CodingWithRuss 4 ай бұрын
Thanks!
@iwozz1044
@iwozz1044 Ай бұрын
I wanted to try pygame and this video helped me with understanding pygame. Thanks!
@m0th.shroommm
@m0th.shroommm 3 ай бұрын
Dude, this was freaking fun. Thanks for the tutorial. It may look like it is from the Atari years, but the feeling of creating this is great!. Cheers!
@CodingWithRuss
@CodingWithRuss 3 ай бұрын
Thanks! Glad to hear you liked it
@P0isonw0lf
@P0isonw0lf 3 ай бұрын
Straight to the point and crystal clear, thanks alot !
@okeomaikwuegbu
@okeomaikwuegbu Ай бұрын
Thank you so much, I was clicking video after video until I saw yours. Great work!
@DrDuck005
@DrDuck005 5 ай бұрын
Great tutorial. Perfect for peoples who never used pygame before what to know how to get started.
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Thanks!
@NileshDarsan
@NileshDarsan 3 күн бұрын
thanks, I needed to draw rectangles for a chart so I thought to use pygame and this is the only tutorial that is not an hour long, lifesaver
@CodingWithRuss
@CodingWithRuss 3 күн бұрын
Glad it helped :)
@samdavepollard
@samdavepollard 5 ай бұрын
very nice thank you for sharing your knowledge (also have to say, as someone who's spent far too long being tortured by c++ build systems, python is a nice change; yeah, yeah, performance will be an issue many times but for what i'm trying to do python's just fine - thanks again)
@rudolfherwig7279
@rudolfherwig7279 5 ай бұрын
Great explanation! Although I'm native german speaking I'd understood very good. Thanks for your effort! 👍😊
@mrblock1318
@mrblock1318 4 ай бұрын
Simple. Clear. Effective
@pastellamayday
@pastellamayday 5 ай бұрын
tsym for this tutorial king :> the simplicity in the explanation helped a ton, finally gonna be able to make games with screens rather than pure text inputs T>T
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Glad you liked it
@tacobeartaco7140
@tacobeartaco7140 9 ай бұрын
This was the best 101 I've found so far. You've got yourself a new subscriber.
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Thanks!
@LMGstudios-qp3ld
@LMGstudios-qp3ld 4 ай бұрын
THANK YOU SO MUCH now i can start my dream job because of you😄
@mysterious_monolith_
@mysterious_monolith_ Жыл бұрын
I think you're the best teacher I've found. Thanks for this video.
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Thank you! Glad you liked it
@GabTheGamer-YT
@GabTheGamer-YT 7 ай бұрын
Thank You so Much! This Helped Me Improve My Python Skills a Lot!
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
Great to hear!
@kristinemaemillano4336
@kristinemaemillano4336 10 ай бұрын
I only watched one of your video and it got me interested already to try on making a game.
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Nice! glad to hear it
@GodOfBedwarsik
@GodOfBedwarsik 5 ай бұрын
I found that it very helpful to use your tutorial. Thank you so much!
@ToujoursIris
@ToujoursIris Жыл бұрын
Glad to see you back!
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Thanks, it's been a while! You even changed your name :)
@ToujoursIris
@ToujoursIris Жыл бұрын
@@CodingWithRuss it sure has been a while and yeah i changed my name :))
@flowerwork7
@flowerwork7 Ай бұрын
Thank you so much for such a great tutorial.
@StanTxc
@StanTxc Жыл бұрын
Hi, russ. I am happy to say that I finally made my first game completely on my own using the knowledge I got from all of your wonderful tutorials. I am giving you recommendations about tutorials that I would like to watch: again a tower defense game where you place towers on the map that shoot at the coming enemies, an upgrade system for them, wave calculating system for the enemies so that the waves are infinite and get harder with each wave. One other tutorial that I would love to watch and I can't find anywhere is about making popping score that appears, floats up and disappears shortly or just disappears after a while or even fades away. Maybe even randomize the size of the numbers, the rotation, the speed and so on . I know that you made a similar thing for your rpg game tutorial, but maybe you can expand on it. Also a game I'm really interested in making is a tower defense, but one where you have to buy troops that go and attack the enemy castle and defend from the enemy troops, im sure that you know of such games. I know how hard it is to make such tutorials and I appreciate your hard work, so I understand if you can't make them. Thats all, thank you for being such an awesome creator, keep it up 👍
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Thanks a lot! Great to hear you've been working on your own projects, it's satisfying to create something yourself. I've not been able to focus on coding/youtube so much for a few months now but I keep trying to get back to it. I do actually have the tower defence game on my list of ideas so it's there in my plans to do someday :)
@tristandombroski9677
@tristandombroski9677 Жыл бұрын
I think a tower defense is a good milestone for novice programmers, that is where I am almost at myself.
@StanTxc
@StanTxc Жыл бұрын
@@tristandombroski9677 Indeed i am also looking forward to the tower defense tutorial
@judelfenix1949
@judelfenix1949 2 ай бұрын
brooo you're so goodddddddddd i understand all and now i can start project. thank you so much
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
Glad it helped :)
@4th_chaos
@4th_chaos Жыл бұрын
This was extremely easy to follow! thank you for this
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Glad it was helpful!
@computationalnotes9561
@computationalnotes9561 4 ай бұрын
Excellent. Thank you
@faqeerhasnain
@faqeerhasnain 5 ай бұрын
soothing/relaxing voice, new sub..
@nicksonyosepsitumorang4557
@nicksonyosepsitumorang4557 Ай бұрын
It's quite helpful thanks bro
@CodingWithRuss
@CodingWithRuss Ай бұрын
Cheers 🙂
@Master_Ed
@Master_Ed Жыл бұрын
personally I'd not use elif for the movement so you can move diagonally
@dminikkk
@dminikkk 11 ай бұрын
How do you do it then?
@pukeblo4382
@pukeblo4382 11 ай бұрын
@@dminikkkyou could just do separate if statements for each directions
@Smart_Snorlax
@Smart_Snorlax 7 ай бұрын
Thanks this was so helpful
@leoelkin3036
@leoelkin3036 7 ай бұрын
​@@pukeblo4382but that means moving diagonally is quicker than sideways
@dallako
@dallako 6 ай бұрын
​@@dminikkkif up elif down if left elif right 2 if statements and 2 else ifs
@sayathaaliayup6250
@sayathaaliayup6250 27 күн бұрын
This is awesome video🎉
@CodingWithRuss
@CodingWithRuss 27 күн бұрын
Thanks :)
@user-ee3sv1yf4i
@user-ee3sv1yf4i 7 ай бұрын
10/10 tutorials
@the_flying_airplane5335
@the_flying_airplane5335 18 күн бұрын
This was an amazing tutorial! One question, when I run the code it’s very inconsistent- sometimes it moves quickly and other times it moves very slowly. I’m running it on a rather old laptop so I wonder if that’s the issue. Anything I can do to fix it?
@laver.
@laver. 9 ай бұрын
Thank you thank you thank you so so much! Now I can watch other tutorials or your own tutorials and not get confused. Thank you again ❤
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad it helped 🙂
@tylerstunter8368
@tylerstunter8368 3 ай бұрын
such a good tutorial
@CodingWithRuss
@CodingWithRuss 3 ай бұрын
Thanks!
@BARBIE_BALLS
@BARBIE_BALLS 3 ай бұрын
Hey there!, im really interested in coding and stuff and i took python in my school(the school really was careless on teaching computer scienceas the teacher was busy most of the time). I myself learnt from a book which was assigned about many things and even learnt about sql and related things. And now i was wondering if theres a possibility to make a small arcade like game and publishing it on an online store to earn something so can u tell is there any possiblity and how?. Soon my exams will over and ill have much more time to spend on my computer so doing a project that gives a atleast a small return would be encouraging and i can say that my hobby is to code. And can u suggest what other future projects should i think to work on? Im thinking to learn about tinkter next after the exams and as for later i was thinking to switch to c# next
@zoundart
@zoundart 7 күн бұрын
Thanks - great video! Is there a follow up, part two etc?
@CodingWithRuss
@CodingWithRuss 6 күн бұрын
After this video it makes sense to jump into some small projects, so I've got tutorials for tic tac toe, snake etc that take what is in this video and build on it into a game.
@RSTGames-ggboys
@RSTGames-ggboys 19 күн бұрын
You're the best!
@bluethingy1112
@bluethingy1112 Жыл бұрын
Russ, you should make tutorials about the Ursina 3D engine. You can make full 3d games with very little lines of code. Keep up the great work though!
@richardcornwell2151
@richardcornwell2151 2 ай бұрын
I'm getting the following error, any suggestions? C:\Windows\System32>pip install pygame 'pip' is not recognized as an internal or external command, operable program or batch file.
@BrokenRift_Productions
@BrokenRift_Productions Ай бұрын
The elif statement prevents it from going diagonal I suggest just doing an if statement
@tennybabcock5146
@tennybabcock5146 13 күн бұрын
THANK YOU!
@CodingWithRuss
@CodingWithRuss 12 күн бұрын
👍
@user-eh9rg9oh4p
@user-eh9rg9oh4p Ай бұрын
Damn seems like it's better than Tkinter. Thanks man!
@nibbinoodle05
@nibbinoodle05 9 ай бұрын
Hey, I finished the video and downloaded the custom firmware as well. I do have one question, when I open up w flipper do I still install new updates or will that mess up the custom firmware?
@mkrsinfo2859
@mkrsinfo2859 Ай бұрын
Hello Russ! Can you pls make a tutorial on how to code chess offline 1v1 with pygame and chess library
@anartxx1583
@anartxx1583 2 ай бұрын
Bro actually i am new in programming so i dont know much about it but when i use commands like Import , init etc It doesnt show the colour like purplish as it shows urs Plz help me out of this
@Megalovania254
@Megalovania254 Жыл бұрын
Is there a way to save the code and then run it from the terminal?
@Hi.-_-
@Hi.-_- Жыл бұрын
Thanks! The Coding was easy, but when i press Ctrl+B my pygame window opens up and shows a black screen and then it shows not responding and gets closed. I am using sublime text editor. please help me with this.
@CodingWithRuss
@CodingWithRuss Жыл бұрын
It's likely that your event handler isn't working correctly. Follow along with the video and you should get it to work
@amnesiac-original
@amnesiac-original 2 ай бұрын
Great! 💚
@jerrychandler7094
@jerrychandler7094 9 ай бұрын
I copied your code exactly, but all I get is a black screen. I have tried many things to fix the problem, even changing the screen to gray instead of black, but still it shows a black screen. No error warnings. Any thoughts?
@BradCantinMedia
@BradCantinMedia 5 ай бұрын
I had this same issue and also an issue where as soon as i would load the window it would tell me not responding. I had to go through the code with a fine toothed comb and realized somehow i left all the [pygame.k_*] lower cased k instead of capitals and for some reason didnt get an error code it would just crash the window but once i made the k capital it ran like a charm. you may have some issue like that in the code
@shivanshtech-od9sr
@shivanshtech-od9sr Ай бұрын
AWESOME
@RustyBites
@RustyBites 7 ай бұрын
when i try to install py game it says 'pip' is not recognized as an internal or external command, operable program or batch file. Do you know how to fix that. Thanks:)
@CodingWithRuss
@CodingWithRuss 7 ай бұрын
I've got a video covering just that :) kzfaq.info/get/bejne/Zt6PgKh815azeoU.html
@Deristrome
@Deristrome 2 ай бұрын
Hello, I get the window to open and vscode shows no issue, but the window keeps loading and if I click it it turns white and stops responding until it crashes, any help?
@x7r45HM4Nx
@x7r45HM4Nx 5 ай бұрын
I created the window and I can move it around, but the window doesn't close when hitting X. I followed the code exact up to that point. Any reason why that would happen?
@justcallmespike5162
@justcallmespike5162 26 күн бұрын
I am attempting to code the rectangle movement, but I can only press one directional button each time I run it, and then it goes to the edge of the screen and doesn't move if I try to press another one.
@khiathompson33
@khiathompson33 Жыл бұрын
Very helpful! Thanks so much for sharing!
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Glad you liked it!
@vmartme
@vmartme 9 ай бұрын
Cool thank you!
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Glad you liked it!
@SkyFly19853
@SkyFly19853 Жыл бұрын
Also, will you make videos on Tile Map Editor for Python?
@CodingWithRuss
@CodingWithRuss Жыл бұрын
I have my own tile map editor that I made for my shooting game and there is a full tutorial for that here: kzfaq.info/get/bejne/rr-Yocx6sbSafKc.html. I also plan to do a tutorial on the 3rd party map editor "Tiled" at some point
@riccardozanoni2531
@riccardozanoni2531 10 ай бұрын
is pycharm usable without paying for the premium stuff? I see that after downloading it gives you 30 days free, but is it still usable after that time or is it a waste of time to download it if i'm not intending to pay a subscription after?
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
The community version of pycharm is free as far as I know...unless that's changed very recently.
@majorgear1021
@majorgear1021 Ай бұрын
This is why I use Visual Studio Code to write python apps. No subscription required!
@levipennerMTB
@levipennerMTB 2 ай бұрын
So I installed sublime text, and I wrote the code that was in the video, but all the text is just white, and not multicolored like in the video. How can I fix that?
@Squigally
@Squigally 2 ай бұрын
in the bottom right of sublime it should say "plain text" click that and then a menu should pop up, look for "python" and click that. that should make them change colour.
@matthewsuggs1637
@matthewsuggs1637 Жыл бұрын
can you list the editors, I know pycharm, notepad plus plus, idle, but what was that first one or the one that you use? Thanks. I'm a total blind person as well, it would be nice if you could show how to make a talking menu system step by step. Thanks again.
@NoobNe23
@NoobNe23 Жыл бұрын
I think its called subline text the idle that he was using
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Hi Matthew, good suggestion, I'll update the description to include this. The editor that I use is Sublime Text
@7guitarlover
@7guitarlover Жыл бұрын
Russ , you are my favorite game developer on KZfaq ! Thank you so much for sharing your knowledge with us =) !
@SkyFly19853
@SkyFly19853 Жыл бұрын
Will you make videos on Pyglet and other game engines?
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Yes I think I will. I've a few more ideas for pygame projects but eventually I'd like to move onto something else.
@CHAZAFRA
@CHAZAFRA Ай бұрын
Uhm. I need help my letter when I click import it doesn’t change colors like yours for example when I put import pygame it’s white not purple like yours and I put all those codes but nothing is running what am I doing wrong?
@diogodomingos504
@diogodomingos504 5 ай бұрын
Hello, im not to sure when you say to run the code i don't where to click to run the code? also, when i type it doesn't show the colours or even the "other alternative words". what im i doing wrong? thank you
@Squigally
@Squigally 2 ай бұрын
in the bottom right of sublime it should say "plain text" click that and then a menu should pop up, look for "python" and click that. that should make them change colour. to run the code go to tools in the top left then hit build system then hit python, to run it hit ctrl + b
@Yourdailypeanut
@Yourdailypeanut 2 ай бұрын
just a quick question, why is the screen variable outside of the while loop? I tried putting it in the while loop and it still worked just fine, why is it not in the while loop. Just wanna clarify.
@CodingWithRuss
@CodingWithRuss 2 ай бұрын
The while loop is for things that are updated every iteration of the loop and is basically the processing stage of the game. Anything before the while loop is your initial setup of the game, which is where you create things once so they can then be used inside the while loop. Think of it like anything before the while loop is when you are getting all the pieces of your game ready and loaded, then inside the while loop is where you use those things. When you go onto games that use images and other assets, you will do the same thing. They will be loaded before the while loop so that they are available to be used inside the while loop.
@Yourdailypeanut
@Yourdailypeanut 2 ай бұрын
@@CodingWithRuss thanks
@asherphoenix5584
@asherphoenix5584 4 ай бұрын
mine keeps on not responding after i added the movement components. any clues what might be going on?
@ThanikachalamG
@ThanikachalamG 2 ай бұрын
bro please help me in my windows laptop is saying this 'pip' is not recognized as an internal or external command, operable program or batch file.
@Xyfria
@Xyfria Жыл бұрын
Btw instead of doing the "run = True" you can just do "while True" and use "break" to end the loop
@CodingWithRuss
@CodingWithRuss Жыл бұрын
Thanks for the tip!
@user-kl5gx5bs9h
@user-kl5gx5bs9h 7 ай бұрын
Instead of making a variable for the while loop you can just say While True: And to finish it just type Break
@user-kw1nu4vt9w
@user-kw1nu4vt9w 5 ай бұрын
instead of break u gotta use exit()
@emo10001
@emo10001 2 ай бұрын
Really nice explanation! Gonna have my 12 yo watch to see if he can get in to it!
@kristinemaemillano4336
@kristinemaemillano4336 10 ай бұрын
Can the app made also work on mobile phones?
@elsyndur4415
@elsyndur4415 Жыл бұрын
Hmm... I have PyGame installed, but when I try to run the code it says, "No module named 'pygame'".
@specktyplays4467
@specktyplays4467 3 ай бұрын
try another code editor like notepad++
@MistereXMachina
@MistereXMachina Жыл бұрын
I've been binging your content and am loving it. I have a small question if you have the time sometime. In your example, pressing WASD moves the rect quite smoothly. In mine, it zooms across the screen and disappears. Any idea what I could be doing incorrectly?
@CodingWithRuss
@CodingWithRuss Жыл бұрын
That may be because the game is running as fast as the PC can process it, so in a game typically I would cap the frame rate. I didn't cover that in this video but in my game tutorials I normally do this: Add a clock and define frame rate of 60 FPS (you can use a different value if you prefer). This code goes before the game loop: #create clock for setting game frame rate clock = pygame.time.Clock() FPS = 60 Then inside the game loop, ensure the game runs at this speed using clock.tick(FPS): #game loop run = True while run: clock.tick(FPS)
@MistereXMachina
@MistereXMachina Жыл бұрын
@@CodingWithRuss I thank you once again for your time, you rock sir.
@LumpySpaceDad
@LumpySpaceDad 7 ай бұрын
@@CodingWithRuss Any tips on keeping the player model on the screen? I have tried a few different methods provided via Google search and my sprite just keeps running away from me lol
@ChrisMaster2
@ChrisMaster2 4 ай бұрын
@LumpySpaceDad Yeah i need that too. I assume that it involves the screen size set as an absolute limit for the boxes
@captainoftheocarina
@captainoftheocarina 2 ай бұрын
Why does my sublime not have any colored text and when you get to the rect leaving a trail the pygame program is closing
@Jacksonsprx
@Jacksonsprx Ай бұрын
i have same issue
@kheprago
@kheprago 5 ай бұрын
What about to make arcade library tutorial?
@otakuuu1710
@otakuuu1710 16 күн бұрын
the explanation is very clear. but i still had a problem with displaying the red cube correctly. it only showed once i closed the window. i moved the pygame.display.update() to a different place , under the line pygame.draw.rect() and now it seems to work. i don't know why that happened..
@SonsuZs0da
@SonsuZs0da 6 ай бұрын
So when i write the commands like import they dosent change colors i thinked it was fine but i cant run the commonds without them chainging colors i dont know what did i do wrong (i used sublimane text for its get easyier to learn)Also like its dosent auto correct im sure this is the right one and im sure ı have installed pygame. Pls help me.
@user-lu8qi8ct9b
@user-lu8qi8ct9b 9 ай бұрын
Hey it crashes after i add the rectangle and the collor could you help me?
@ianhow2989
@ianhow2989 10 ай бұрын
Hi! your video is clear and great for beginer like me XD, I would like to ask why the coordinate on Y-axis number is opposite from the general format that we learn on math? From your video key W/moving upward(0, -1) and S/moving downward(0, 1)? I tried W(0, 1) and S(0, -1) turns up moving opposite
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
It's just the way the pygame coordinate system is setup. The y axis is flipped so the top of the screen is (0, 0) and then the y coordinate increases down the screen.
@Jack34373
@Jack34373 10 ай бұрын
Thanks for the amazing Tutorial. Last comment I couldnt install pip but I found what was wrong. Thanks! Also one question what key is used to Run the code?
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Hello, glad you got it working. Did you figure out how to run the code? If you are using sublime text then it is CTRL + B
@jacoblodiceofficial
@jacoblodiceofficial 7 ай бұрын
this code doesn't work with python3 it gives me an indentation error on line 13 and i cant fix it i dont know what is going on here but if anyone can help id appreciate it greatly
@yoshivictorius98
@yoshivictorius98 10 ай бұрын
Now do i open the game Window like you do for checking if it's working?
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
Depends on your editor but in sublime text I use CTRL+B
@GamingGOATS-ly4kf
@GamingGOATS-ly4kf 9 ай бұрын
I am just getting started on python do you have any idea on what to make as my first game?
@CodingWithRuss
@CodingWithRuss 9 ай бұрын
Things like tictactoe, snake, pong etc are all good starter projects. I've got tutorials for all of those if you get stuck
@sydneyarmy6274
@sydneyarmy6274 10 ай бұрын
Weird question, I seem to have followed everything exactly, but am not seeing the rectangle until right as I close the game... not sure where I went wrong
@CodingWithRuss
@CodingWithRuss 10 ай бұрын
In these cases it's usually a small typo or missed indentation somewhere. Maybe your screen.flip() is outside the main game loop? Double check the code and see if you can track the issue.
@sydneyarmy6274
@sydneyarmy6274 10 ай бұрын
@@CodingWithRuss thanks so much for your reply! Still trying to track down the issue, but running into the game just crashing every time I try to play it, even though there's still no rectangle. I'm going to keep at it though!
@kroepkroep
@kroepkroep 5 ай бұрын
Thank you sooooooo much for showing you need to tik the boxen when installing Python. Ive been trying to install pygame for over an hour and everytime I tried to run the command or anything it gave me an error
@CodingWithRuss
@CodingWithRuss 5 ай бұрын
Glad it helped. It's such a small thing and easy to miss it!
@LivingLikeGaryYT
@LivingLikeGaryYT 2 ай бұрын
im just confused on how to come up with this on my own. like all the (()) and : , . how do i even know what to type? i can follow your steps and basically cope and paste but how do i understand what to write?
@flabwindows10
@flabwindows10 9 ай бұрын
my sprite[the rectangle] is so fast that it disappears how should i make it slow down
@jhiroshige91
@jhiroshige91 2 ай бұрын
How can I create a circle instead of a rectangle that I can move?
@l3xuis_
@l3xuis_ 7 ай бұрын
So I have python and pygame and I even checked with the command prompt, but everytime I type in "import pygame", it says no module name 'pygame'. I even tried it in sublime which I orginally used pycharm. Is there a fix to this or nah?
@user-kw1nu4vt9w
@user-kw1nu4vt9w 5 ай бұрын
I shifted to VS code/Pycharm coz of this
@7guitarlover
@7guitarlover Жыл бұрын
Can anyone explain the difference between Import pygame and using pygame.init() method. What exactly is being initialized?
@kendricklamargaming8174
@kendricklamargaming8174 Жыл бұрын
import pygame just makes the module available to the python interpreter, pygame.init() actually initializes the module
@chesstutorialshadi8168
@chesstutorialshadi8168 3 ай бұрын
I got stuck on the very beginning and got this error: RuntimeWarning: import threads: No module named 'pygame.threads' (ModuleNotFoundError: No module named 'pygame.threads') import pygame
@baebee3
@baebee3 3 ай бұрын
I also got an error saying [Errrno 2] No such file or directory: ‘ ‘[finished in 110ms]
@nukestormgg
@nukestormgg 2 ай бұрын
if ur on vs code then on the powershell terminal type in "pip install pygame"
@DeviaNT628
@DeviaNT628 2 ай бұрын
I am having issues running the software. It's trying to reach images from my C: Drive, but I am using my E: drive for coding.
@caleb5926
@caleb5926 4 ай бұрын
How do j program it where it moves to touch screen
@RafaelCabreraAzrael
@RafaelCabreraAzrael Жыл бұрын
i have the same setup but when i compile from sublime nothinghappens
@CodingWithRuss
@CodingWithRuss Жыл бұрын
What does it say in the console at the bottom of the screen? Do you use "Tools" then "Build" to run it? You may need to use "Build With" and make sure to choose a python installation
Pygame Event Handler Explained
5:22
Coding With Russ
Рет қаралды 24 М.
2 YEARS of PYTHON Game Development in 5 Minutes!
4:54
Coding With Russ
Рет қаралды 815 М.
Indian sharing by Secret Vlog #shorts
00:13
Secret Vlog
Рет қаралды 57 МЛН
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 14 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 86 МЛН
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,5 МЛН
Making an Executable from a Pygame Game (PyInstaller)
6:08
DaFluffyPotato
Рет қаралды 102 М.
Why Building a C++ Component in Unreal Engine is Easier Than You Think!
12:24
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,8 МЛН
2 Python Developers VS $1000
15:04
PolyMars
Рет қаралды 1,7 МЛН
How much MONEY my Game made (and how much it cost!)
14:00
Code Monkey
Рет қаралды 152 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,4 МЛН
Learn Python Classes With a Text-Based Battle - OOP Tutorial
15:25
Ork Slayer Gamedev
Рет қаралды 130 М.
I made Games with Python for 10 Years...
28:52
DaFluffyPotato
Рет қаралды 237 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 329 М.
Indian sharing by Secret Vlog #shorts
00:13
Secret Vlog
Рет қаралды 57 МЛН