Get Started in Pygame in 10 minutes!

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

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

  • @CodingWithRuss
    @CodingWithRuss  7 месяцев назад +36

    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: ruclips.net/video/0x_MEKr0OJQ/видео.html

    • @confidenceart12
      @confidenceart12 6 месяцев назад

      You haven't had your python run to paths

    • @pretzelshi
      @pretzelshi Месяц назад

      Whenever I run the command, nothing happens, not even text appears

  • @PyroProtato
    @PyroProtato 11 месяцев назад +151

    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  11 месяцев назад +8

      Glad it helped!

    • @ChrisMaster2
      @ChrisMaster2 10 месяцев назад +4

      I've made FlapPy Bird, but it was from a sample. Now, I'm watching this video to truly learn.

    • @GirduzzYT
      @GirduzzYT 6 месяцев назад +1

      I’m trying to make Tetris and you helped me a lot

  • @fumainc.4403
    @fumainc.4403 Год назад +69

    I can say as a beginner to pygame and pythoon as a whole. This was a easy tutorial to follow.

  • @laura-vara
    @laura-vara 8 месяцев назад +10

    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.

  • @drnazishimran
    @drnazishimran 3 месяца назад +14

    Thanks bro. I just learned Python and wanted to try out some graphics. Most videos are like 30-60 minutes and don't have clear explanations, but this video explains everything in a great way in just 10 minutes! Awesome video

    • @CodingWithRuss
      @CodingWithRuss  3 месяца назад

      Nice! Glad to hear it helped. I've got plenty of long tutorials too but this one gets you started quickly.

  • @theafro
    @theafro 10 месяцев назад +11

    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_ Год назад +74

    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  Год назад +9

      That's great to hear! Glad you are enjoying the tutorials.

  • @aimeeh2079
    @aimeeh2079 3 месяца назад +5

    Oh my gosh I've been meaning to get into proper coding after Scratch and this is suchhh a good tutorial I'm so excited with the possibilities! Thank you Russ

  • @CodingPiratesHillerod
    @CodingPiratesHillerod 10 месяцев назад +13

    One of the best explanations of the needed basic elements to start a Pygame project. Thanks a bunch!

  • @jpopperman9369
    @jpopperman9369 Месяц назад +2

    It literally took me 10 minutes following this video. Thanks so much! What a confidence booster this was!

  • @cloudedpotatoplays919
    @cloudedpotatoplays919 8 месяцев назад +1

    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!

  • @m0th.shroommm
    @m0th.shroommm 9 месяцев назад +5

    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!

  • @yvonnevarley6351
    @yvonnevarley6351 Год назад +7

    Hi, Russ!
    Thanks for this. FYI, in Thonny, you have to capitalise the True and False in the code for it to work.

  • @ethanforman9850
    @ethanforman9850 3 месяца назад

    this is great! just got started in python and this is literally the first video (of many) I've come across that performed exactly as you explained. and everything made sense! thank you.

  • @NileshDarsan
    @NileshDarsan 6 месяцев назад +1

    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

  • @mysterious_monolith_
    @mysterious_monolith_ Год назад +7

    I think you're the best teacher I've found. Thanks for this video.

  • @pastellamayday
    @pastellamayday 11 месяцев назад +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

  • @tacobeartaco7140
    @tacobeartaco7140 Год назад +9

    This was the best 101 I've found so far. You've got yourself a new subscriber.

  • @testAjitSNU
    @testAjitSNU 4 месяца назад +1

    What a simple concise tutorial. Loved it.

    • @ilikepissuwu
      @ilikepissuwu 4 месяца назад

      he's not gonna see you lil bro

  • @igoratagyan6664
    @igoratagyan6664 6 месяцев назад +1

    Great tutorial, thank you very much! I played the final result for about 15 minutes!

  • @okeomaikwuegbu
    @okeomaikwuegbu 7 месяцев назад +1

    Thank you so much, I was clicking video after video until I saw yours. Great work!

  • @Derpfulness
    @Derpfulness Месяц назад +1

    Thanks a ton for making this man, this boost me so far ahead in learning pygame

  • @DrDuck005
    @DrDuck005 11 месяцев назад +1

    Great tutorial. Perfect for peoples who never used pygame before what to know how to get started.

  • @vdBlogMaster
    @vdBlogMaster 5 месяцев назад +1

    This is an amazing tutorial and great explanation! I can understand every line of the code and why it was written. Thank you so much!

    • @CodingWithRuss
      @CodingWithRuss  5 месяцев назад

      Thank you! Glad to hear it makes sense

  • @iwozz1044
    @iwozz1044 7 месяцев назад +3

    I wanted to try pygame and this video helped me with understanding pygame. Thanks!

    • @blacklight6376
      @blacklight6376 6 дней назад

      should I install Python 3.13.0 the latest version or 3.11.1 ??? I'm confused!!!

    • @iwozz1044
      @iwozz1044 5 дней назад

      @@blacklight6376 pretty sure you should install latest

  • @mrblock1318
    @mrblock1318 10 месяцев назад +1

    Simple. Clear. Effective

  • @AB-rh5yq
    @AB-rh5yq 3 месяца назад

    This worked so well. I’m excited to code alongside your other videos

  • @Chess_Man100
    @Chess_Man100 25 дней назад

    Thank You, Altough It Will Still Take 2 Days To Revise, I Needed A Reasonably Good Tutorial. JUST What I Was Looking For!

  • @P0isonw0lf
    @P0isonw0lf 9 месяцев назад +1

    Straight to the point and crystal clear, thanks alot !

  • @MJ-ly1cv
    @MJ-ly1cv 3 месяца назад +1

    thank you for the tutorial! i am in a (very) begginer state regards python, so some of the code's modules (i hope that's what they're called im so sorry 😭😭) are new to me and i thought i wasn't going to understand, but you explained it so well!! thank you very much :) i really wanted to try out making games, it seems fun

    • @CodingWithRuss
      @CodingWithRuss  3 месяца назад +2

      Thanks! I really wanted to make it easy to follow so I'm glad to hear it all made sense. Good luck with your game projects. Pygame is really flexible and you can make lots of different types of games with it.

  • @Master_Ed
    @Master_Ed Год назад +79

    personally I'd not use elif for the movement so you can move diagonally

    • @dminikkk
      @dminikkk Год назад +3

      How do you do it then?

    • @pukeblo4382
      @pukeblo4382 Год назад +18

      @@dminikkkyou could just do separate if statements for each directions

    • @Smart_Snorlax
      @Smart_Snorlax Год назад +2

      Thanks this was so helpful

    • @leoelkin3036
      @leoelkin3036 Год назад

      ​@@pukeblo4382but that means moving diagonally is quicker than sideways

    • @dallako
      @dallako Год назад

      ​@@dminikkkif up elif down
      if left elif right
      2 if statements and 2 else ifs

  • @katiegao2175
    @katiegao2175 5 месяцев назад +1

    great video, about to start trying to code a little game in python and this helped a lot! keep up the good work!!!

  • @garrettbodily
    @garrettbodily Месяц назад +1

    This is a great "Hello World" for pygame! Thank you!

  • @ToujoursIris
    @ToujoursIris Год назад +1

    Glad to see you back!

    • @CodingWithRuss
      @CodingWithRuss  Год назад +1

      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 :))

  • @GabTheGamerGT
    @GabTheGamerGT Год назад +2

    Thank You so Much! This Helped Me Improve My Python Skills a Lot!

  • @Pantagana9000
    @Pantagana9000 4 месяца назад

    Woooow, so much code for such a "simple" task . How the hell you got all that knowledge ! Thanks

  • @judelfenix1949
    @judelfenix1949 8 месяцев назад +1

    brooo you're so goodddddddddd i understand all and now i can start project. thank you so much

  • @elsyndur4415
    @elsyndur4415 Год назад +5

    Hmm... I have PyGame installed, but when I try to run the code it says, "No module named 'pygame'".

    • @specktyplays4467
      @specktyplays4467 9 месяцев назад

      try another code editor like notepad++

  • @enigma6925
    @enigma6925 2 месяца назад +1

    Thanks, Great tutorial, easy to follow and works great, I'm running on Windows 11 using Geany 🙂

  • @LMGstudios-qp3ld
    @LMGstudios-qp3ld 10 месяцев назад

    THANK YOU SO MUCH now i can start my dream job because of you😄

  • @StanTxc
    @StanTxc Год назад +15

    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  Год назад +5

      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 Год назад +3

      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

  • @rudolfherwig7279
    @rudolfherwig7279 11 месяцев назад

    Great explanation! Although I'm native german speaking I'd understood very good. Thanks for your effort! 👍😊

  • @Zenlayne
    @Zenlayne Месяц назад

    Epic tutorial, just what I needed

  • @samdavepollard
    @samdavepollard 11 месяцев назад

    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)

  • @4th_chaos
    @4th_chaos Год назад +7

    This was extremely easy to follow! thank you for this

  • @jerrychandler7094
    @jerrychandler7094 Год назад +3

    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 11 месяцев назад

      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

  • @meiscoolbutmo
    @meiscoolbutmo Месяц назад

    I don't have any problems with this. For me this works really well and it's super cool i think

  • @RustyBites
    @RustyBites Год назад +2

    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  Год назад

      I've got a video covering just that :) ruclips.net/video/0x_MEKr0OJQ/видео.html

  • @shenfon01
    @shenfon01 2 месяца назад +1

    i am sorry to ask but when i type pygame.init,it said init was not in the pygames(AttributeError: partially initialized module 'pygame' has no attribute 'init' (most likely due to a circular import)),i want to know what happened?

  • @asherphoenix5584
    @asherphoenix5584 11 месяцев назад +2

    mine keeps on not responding after i added the movement components. any clues what might be going on?

  • @CodingWithRuss
    @CodingWithRuss  Год назад +1

    Hello folks! Visit codingwithruss.com/tutorial/getting-started to get the code and a quick reference of what was covered in this video.

  • @anartxx1583
    @anartxx1583 8 месяцев назад +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

  • @3sides-o2b
    @3sides-o2b 2 месяца назад +1

    Very good tutorial bro!

    • @CodingWithRuss
      @CodingWithRuss  2 месяца назад

      Thanks!

    • @3sides-o2b
      @3sides-o2b 2 месяца назад

      @@CodingWithRuss Even though I wanna learn pygame,and you godot, try making Bomberman at one time!

  • @Hi.-_-
    @Hi.-_- Год назад +2

    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

  • @AI-NotesExperience
    @AI-NotesExperience 10 месяцев назад +2

    Excellent. Thank you

  • @ComplexDodoYT
    @ComplexDodoYT 11 месяцев назад

    When I open up the program after the code at 7:30 it does not show the red box till I close the program 😕😕😕

    • @Warlock_710
      @Warlock_710 11 месяцев назад

      What probably happened is that your pygame.display.update is under the quit program
      I had that problem too. What helped me was to put a extra line with enter

  • @Acegamer1000-i1w
    @Acegamer1000-i1w 9 месяцев назад +2

    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 9 месяцев назад

      I also got an error saying
      [Errrno 2] No such file or directory: ‘ ‘[finished in 110ms]

  • @Nakameguro97
    @Nakameguro97 4 месяца назад +1

    What’s your opinion on pygame2 vs pygame zero vs arcade, from the perspective of an experienced python developer? Should I just go for pygame2 or are the other two worth using?

    • @CodingWithRuss
      @CodingWithRuss  4 месяца назад +1

      I've never used pygame zero but I played about with arcade a bit and that was quite cool. It does some of the work for you in terms of collision handling etc so you can get up and running faster. Overall though pygame is the more established of those, the documentation is decent and there's more tutorials and online support so it's probably the best one to begin with. It's not a huge time investment to try out each one though, so once you get a feel for one of them, you could try making a simple game in all three to see which you prefer.

  • @zoundart
    @zoundart 6 месяцев назад +1

    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.

  • @VicenteFagalde
    @VicenteFagalde Год назад

    10/10 tutorials

  • @flowerwork7
    @flowerwork7 7 месяцев назад

    Thank you so much for such a great tutorial.

  • @chloebowie06
    @chloebowie06 Месяц назад +1

    Did anyone’s red square go completely off screen idk what I did but the s key works but other keys make it go fast off screen if that makes sense ?

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 4 месяца назад +1

    that was quick and gooood!

  • @nicksonyosepsitumorang4557
    @nicksonyosepsitumorang4557 7 месяцев назад +1

    It's quite helpful thanks bro

  • @Firecracker511
    @Firecracker511 3 месяца назад +1

    very helpful! thank you very much

  • @faqeerhasnain
    @faqeerhasnain 11 месяцев назад

    soothing/relaxing voice, new sub..

  • @richardcornwell2151
    @richardcornwell2151 8 месяцев назад +1

    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.

    • @dapotato175
      @dapotato175 3 месяца назад

      Its normal, it happened to me but everything runs fine

  • @Xyfria
    @Xyfria Год назад +5

    Btw instead of doing the "run = True" you can just do "while True" and use "break" to end the loop

  • @laver.
    @laver. Год назад +2

    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 ❤

  • @BrokenBattle
    @BrokenBattle 7 месяцев назад

    The elif statement prevents it from going diagonal I suggest just doing an if statement

  • @7guitarlover
    @7guitarlover Год назад +2

    Russ , you are my favorite game developer on RUclips ! Thank you so much for sharing your knowledge with us =) !

  • @sayathaaliayup6250
    @sayathaaliayup6250 7 месяцев назад +1

    This is awesome video🎉

  • @Ertyi0303
    @Ertyi0303 Год назад +4

    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 11 месяцев назад

      instead of break u gotta use exit()

  • @grantr7940
    @grantr7940 11 месяцев назад +1

    HELP: 2:53 "The game window flashed for a second"
    my code:
    *import pygame
    pygame.init()
    SCREEN_WIDTH = 800
    SCREEN_HEIGHT = 600
    screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
    run = True
    WHILE run:*
    it says "can't find '__main__' module in 'C:\\Program Files\\Sublime Text 3'
    [Finished in 86ms]" and continuing onto further steps doesn't work.
    It's not your problem but help a brother out

  • @kristinemaemillano4336
    @kristinemaemillano4336 Год назад +1

    I only watched one of your video and it got me interested already to try on making a game.

  • @Eah2019
    @Eah2019 5 месяцев назад +1

    Well, I'm subscribed now.

    • @vorefield7079
      @vorefield7079 5 месяцев назад +1

      skill issue

    • @Eah2019
      @Eah2019 5 месяцев назад

      @vorefield7079 Not going to lie, I didn't realize I said "unsubscribed" when I meant to say "subscribed." Lol, thank you for commenting.

    • @CodingWithRuss
      @CodingWithRuss  5 месяцев назад +1

      Thanks! I saw your comment before the edit and wondered what I'd done wrong 😅

    • @Eah2019
      @Eah2019 5 месяцев назад

      @@CodingWithRuss lol I’m sorry no your channel is awesome I’m learning python and came across your channel and was exited because it helps people like me build a portfolio of projects and learn more about programming in different ways I give your videos 10/10 highly recommend

  • @jaudatalhusen9049
    @jaudatalhusen9049 2 месяца назад +1

    Great vid ... keep going

  • @levipennerMTB
    @levipennerMTB 8 месяцев назад +1

    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 8 месяцев назад

      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.

  • @riccardozanoni2531
    @riccardozanoni2531 Год назад +1

    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  Год назад +1

      The community version of pycharm is free as far as I know...unless that's changed very recently.

    • @majorgear1021
      @majorgear1021 7 месяцев назад

      This is why I use Visual Studio Code to write python apps. No subscription required!

  • @Md.TojammelHaque-g5f
    @Md.TojammelHaque-g5f 7 месяцев назад

    Damn seems like it's better than Tkinter. Thanks man!

  • @JosiahBang
    @JosiahBang 6 месяцев назад +1

    import pygame
    pygame.init()
    SCREEN_WIDTH = 800
    SCREEN_HEIGHT = 600
    screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
    gives me: AttributeError: partially initialized module 'pygame' has no attribute 'init' (most likely due to a circular import)
    i have windows 11, python and pygame both installed, plz help

  • @La_capsule_v2
    @La_capsule_v2 3 месяца назад +2

    9:17 no way it was not intentional

  • @AmogusVR34
    @AmogusVR34 Месяц назад +1

    Um i using a raspberrypi 5 but it is keeps saying "Traceback (most recent call last): file "/home/#####/skibidi app (game).py", line 13 if key[py.K_a] == True: IndentationError: unindent does not match any indentation level"

    • @CodingWithRuss
      @CodingWithRuss  Месяц назад

      It means the indentation in the code isn't right. Double check it to make sure it matches the code in the video

  • @Camirritelecul
    @Camirritelecul 2 месяца назад +1

    How do I make the rectangle to go slower?

  • @captainoftheocarina
    @captainoftheocarina 8 месяцев назад +1

    Why does my sublime not have any colored text and when you get to the rect leaving a trail the pygame program is closing

  • @BARBIE_BALLS
    @BARBIE_BALLS 9 месяцев назад

    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

  • @02pigoso
    @02pigoso 9 месяцев назад

    such a good tutorial

  • @yoshivictorius98
    @yoshivictorius98 Год назад +1

    Now do i open the game Window like you do for checking if it's working?

    • @CodingWithRuss
      @CodingWithRuss  Год назад

      Depends on your editor but in sublime text I use CTRL+B

  • @the_flying_airplane5335
    @the_flying_airplane5335 6 месяцев назад

    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?

  • @x7r45HM4Nx
    @x7r45HM4Nx 11 месяцев назад

    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?

  • @Biranavan
    @Biranavan 5 месяцев назад

    great intro ty for the tutorial

  • @nibbinoodle05
    @nibbinoodle05 Год назад +2

    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?

  • @sydneyarmy6274
    @sydneyarmy6274 Год назад +1

    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  Год назад

      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 Год назад

      @@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!

  • @Deristrome
    @Deristrome 8 месяцев назад

    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?

  • @tennybabcock5146
    @tennybabcock5146 6 месяцев назад +1

    THANK YOU!

  • @jacoblodiceofficial
    @jacoblodiceofficial Год назад +1

    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

  • @bluethingy1112
    @bluethingy1112 Год назад +2

    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!

  • @Sk-Bolt
    @Sk-Bolt Месяц назад

    what version of Sublime text were you using

  • @Crum27
    @Crum27 9 месяцев назад +2

    i cant find where pygame was installed

    • @One-love_One-God_and_One-way
      @One-love_One-God_and_One-way 9 месяцев назад

      Same. The only thing I have found online is if you open up the "cmd" window and type "pip install pygame" then if it's already installed it will show you a c: path to find it. Let me know if you figure it out.

    • @One-love_One-God_and_One-way
      @One-love_One-God_and_One-way 9 месяцев назад

      Now that I'm looking at the tutorial I don't think you have to open pygame. I think you just import and int pygame as the first two lines of code.
      I think I'm not actually sure.

    • @dapotato175
      @dapotato175 3 месяца назад

      you have to open your code editor, pygame itself isn't an program
      I use pycharm, and typed exactly what he did and it asked me if I wanted to download the "PyGame" module
      So for short, PyGame is just a module and not an app.

  • @ianhow2989
    @ianhow2989 Год назад +4

    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  Год назад +4

      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.