PyGame Scrolling Shooter Game Beginner Tutorial in Python - PART 1 | Creating the Player

Поділитися
Вставка
  • Опубліковано 4 січ 2025

КОМЕНТАРІ • 453

  • @r.e.4873
    @r.e.4873 8 місяців тому +8

    Props to you for not only teaching people how to make an actually interesting game, but also taking an object-oriented approach right from the start. This really stands out from the crowd as a tutorial. I just hope the code isn't outdated by now with updates to python / pygame.

  • @green_quadrix
    @green_quadrix 3 роки тому +85

    woah! this is by far the coolest and educational tutorials on pygame i've ever had! you're awesome! thanks a million!🤩😊

  • @CodingWithRuss
    @CodingWithRuss  3 роки тому +8

    Part 2 uploaded, in which I add in keyboard controls to move the character: ua-cam.com/video/7WsE1Vy1Krg/v-deo.html

  • @cosmo8874
    @cosmo8874 3 роки тому +12

    Following along with this series and adding my own ideas to my project as I go along. Already I can see that with the first video you are clear and concise when explaining difficult concepts, and you have really helped me so much. Thank you so much for posting quality content like this!

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +1

      Thanks! I'm glad you're finding it useful. Hope to see a demo of your project when you finish it :)

  • @phoenixninja8872
    @phoenixninja8872 2 роки тому +11

    Man I can't thank you enough for this tutorial series. I'm using the game logic as a foundation for my A level CS project but I've changed the player and enemy sprites and eventually when the enemy engages in a battle with enemies, im gonna make it so that the game loads up a CS Multiple choice question and some more jazz. I got 7 weeks left to code, document and submit it and this series is honestly gonna be a lifesaver. Thank you so very much.

  • @lucasdahl1118
    @lucasdahl1118 3 роки тому +2

    BY FAR ONE OF THE BEST CHANNELS FOR PYTHON CONTENT, IF NOT THE GREATEST!

  • @opst1x89
    @opst1x89 3 роки тому +9

    This helped me so much!!! had some problems with using classes but you cleared it for me! you went right to the point and it is explanied so good! best tutorial ever!

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +1

      Thanks! Much appreciated. I'm glad the videos are helpful :)

  • @jesterc.6763
    @jesterc.6763 3 роки тому +8

    Thank you so much my Guy!! this is awesome. Imagine a project like this would cost thousands of dollars to learn in post secondary institutions, but here we are, the universe has blessed us a Man that willingly share his knowledge for FREE to idiots like me to potentially make it in life. THANK YOU.

  • @jgartz8392
    @jgartz8392 3 роки тому +11

    Great tutorial. Ill be following this series to make my own but Ill add some of my own ideas to my game. You are good at explaining whats going on and that makes it easy to follow. Thanks

  • @atakankorkmaz2
    @atakankorkmaz2 3 роки тому +3

    Great video man. This is definitely the most educational pygame video i've ever seen. The way you explained OOP was perfect.

  • @ratnadeephalder2745
    @ratnadeephalder2745 3 роки тому +22

    Never thought making a difficult game like that could be explained so easily, thanks a lot 😭♥️

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +3

      Thanks! I'm glad it actually makes sense :D

  • @Dash-mio
    @Dash-mio 3 роки тому +1

    one of the best tutorials on pygame in yt

  • @serratedhumor8468
    @serratedhumor8468 2 роки тому +2

    The way you explain everything. perfect. thank you!

  • @chetnajadwal1975
    @chetnajadwal1975 2 роки тому +3

    Great explanation, I understand all the small, big and hard concepts. This channel deserves more subscriber's. 😀

  • @daniela.3524
    @daniela.3524 Рік тому +1

    i love how you explain python basics like oop. i'm just getting started and the way you explain it and show how it works makes me understand it better than in my udemy course ^^
    thanks and keep up the good work!

  • @anypuppet
    @anypuppet 3 роки тому +5

    This is fantastic!😃Looking forward to follow along.

  • @trailsanddales4356
    @trailsanddales4356 3 роки тому +1

    Nice to see your channel growing. Great work

  • @Peachwarrior-f9r
    @Peachwarrior-f9r Рік тому +1

    by far this is the most advance thing i coded but when you say it, it feels a lot easier

    • @CodingWithRuss
      @CodingWithRuss  Рік тому +2

      Glad to hear it's making sense. It's the most advanced thing I coded too 😅

  • @rutgersmit3383
    @rutgersmit3383 3 роки тому +1

    I've seen you previous platformer, but this tutorial is even better!
    Thank you for these tutorials!

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +1

      Thanks, I worked on improving the previous platformer and added extra features to make this one

  • @thelittledragon5595
    @thelittledragon5595 2 роки тому +1

    tysm for these tutorials
    you explain these the absolute best and its so easy to understand

  • @matthewhook3375
    @matthewhook3375 3 роки тому +4

    Awesome, love your tutorials. Cant wait to follow along with this one! Many thanks for sharing with us.

  • @tonyburn
    @tonyburn 3 роки тому +1

    Fantastic! I always believe anything can be explained, if its explained correctly and you sir have nailed it! You have talked OOP, that can be quite complex, and explained it in a way that can be understood. I agree with all the other comments here. This tut is one of the best I have seen and is worth a sub alone, so I have. Thank you. :)

  • @CodingIsFun
    @CodingIsFun 3 роки тому +2

    Very cool tutorial. Thanks for sharing your knowledge! 👍

  • @soulEaterDex
    @soulEaterDex Рік тому +1

    Really enjoying it short burst of information easy to understand

  • @SS-id4hg
    @SS-id4hg 3 роки тому +6

    AMAZING! Thanks for the videos!!!

  • @jedicubing4771
    @jedicubing4771 2 роки тому +2

    So I am not doing the exact same things as you right now, I am making my own project with help of this one. So one question, you scaled up the image at 9:41 however I want to scale down my image. I thought you could use decimals like 0.5 however, this makes my lengths float values. So how would I do it?

    • @CodingWithRuss
      @CodingWithRuss  2 роки тому

      Yea you have to be careful with that. You could use int() to turn the floats into integers.

  • @Ask_Think_Learn
    @Ask_Think_Learn Місяць тому +1

    Your absolutely awesome
    You've explained oop in such easy!!!

  • @decidev
    @decidev 3 роки тому +1

    This looks like a realy cool series! I'll do it later!

  • @jonsantos6056
    @jonsantos6056 3 роки тому +2

    Cheers for the clear tutorial mate!

  • @star_t1
    @star_t1 3 роки тому +2

    Finally tutorial came out :)

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +1

      Part 2 coming soon :)

    • @star_t1
      @star_t1 3 роки тому +2

      @@CodingWithRuss Glad to hear that. Your tutorial helped me to make a game (it's like platformer and flappy bird)

  • @itcode2803
    @itcode2803 3 роки тому +1

    WOOOOOOW CANT WAIT FOR PART TWO

  • @asy42699
    @asy42699 10 місяців тому

    you explain better than a person in a paid course

  • @varnikaaarora9219
    @varnikaaarora9219 3 роки тому +1

    Thank you SO MUCH!! I was having trouble with classes and you cleared it all up for me!

  • @khargos7602
    @khargos7602 9 місяців тому +1

    Woo!! Onto the next one.

    • @CodingWithRuss
      @CodingWithRuss  9 місяців тому +1

      This was my favourite game to make. It had a bunch of little features that I hadn't made before so it was fun to figure them out. Hope you like it too.

  • @LimbieV
    @LimbieV 3 роки тому +3

    You make it sound like magic, but the achievable kind. Thank you so much for the tutorial !

  • @7guitarlover
    @7guitarlover 3 роки тому +1

    this is awesome ! Thanks Russ !

  • @rafy-ivanmorales3077
    @rafy-ivanmorales3077 3 роки тому

    I'm a new student trying to learn, so I can become a programmer with python and I have a project on how to make a port scan.
    So far I already make a port scan with Python3, and it scans fine, give a date and everything working good so far.
    I see on your video tutorial, it is very good.
    I would like to ask for your advice if you can and guide me on how I will add this 3
    in a Python script, I have:
    2. System should look for all the ports between the range of 1 to 1025
    3. If the Ports is open, it should create a file and add an entry for port number
    4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
    due to any other error, you need to write that exception into the same file.
    Thank you and Merry Christmas.

  • @AbdulRahman-w6s
    @AbdulRahman-w6s 3 місяці тому +1

    million wows. great tutorial .

  • @NoobNe_23
    @NoobNe_23 2 роки тому +1

    SO GOOD I DID THE WHOLE THING

  • @wajahatalibasharat6923
    @wajahatalibasharat6923 2 роки тому +1

    good work and thank you so much, Greetings from Egypt

  • @Mr.monidria
    @Mr.monidria 3 роки тому +2

    its help me learn pygame a lot

  • @VivekKumar-yf8tb
    @VivekKumar-yf8tb 3 роки тому +1

    Woah!!!!! One of the best tutorials ever on pygame THANK YOU VERY MUCH BROTHER ❤️

  • @erie969
    @erie969 8 днів тому

    14:34 why img is not image? why are we diffrentiating those two? i dont understand please help please please

  • @ryzen6284
    @ryzen6284 Рік тому +2

    Thanks 🙏

  • @simex4274
    @simex4274 3 роки тому +1

    Nice man. You know how to explain everything

  • @FRAMEDSKATEKREW69
    @FRAMEDSKATEKREW69 Рік тому +1

    Well looks like a found a new lil project to try!

  • @avtar7406
    @avtar7406 3 роки тому +1

    You teach really gratifying ,your great waiting for your next vedios.

  • @Ibrahim-uz6sr
    @Ibrahim-uz6sr 3 роки тому +1

    Im so exited to make this thanks bro

  • @tragillsantos
    @tragillsantos 8 місяців тому +1

    i think im finally getting it thanks man if u ever do decide to put out a course im interested

    • @CodingWithRuss
      @CodingWithRuss  8 місяців тому

      Thanks, glad to hear you found it useful! And funnily enough, I do have a course :). There's a demo of it on this video plus the first 6 or so parts are free to view as a demo: ua-cam.com/video/qSBmjSsscI4/v-deo.html

    • @tragillsantos
      @tragillsantos 8 місяців тому

      @@CodingWithRuss and again thank you

  • @ThiagoCosta-th1cs
    @ThiagoCosta-th1cs 3 роки тому +1

    You're awesome, dude! Thank you very much!

  • @agustingomez9875
    @agustingomez9875 3 роки тому +1

    What a tutorial!! Super!! Thanks a ton! Subbed immediately

  • @tryserve
    @tryserve Рік тому +1

    what did u use to import images and where did u put the images?

  • @hunger4cash778
    @hunger4cash778 11 днів тому

    @CodingWithRuss Great video but I'm a bit lost as to why your arguments in the class seem out of order compared to how they are written. X and Y are written last and scale is written first but the arguments are written as Character(x, y, scale). Can you help me understand this?

  • @dilemmaedits
    @dilemmaedits 3 роки тому

    Fantastic Video till now!

  • @luqigongchang6213
    @luqigongchang6213 2 роки тому +1

    thanks mate tNice tutorials was a big help

  • @ahmedal-ebrashy3691
    @ahmedal-ebrashy3691 3 роки тому +1

    I found it very useful, thank you.

  • @sksahil4374
    @sksahil4374 3 роки тому +1

    i am being your fan.great video

  • @tomdent2961
    @tomdent2961 2 роки тому +7

    how do you get python

  • @Anon3527bober
    @Anon3527bober Рік тому +1

    that needs more views

  • @duongvanphi862
    @duongvanphi862 3 роки тому +2

    This is amazing!

  • @BeRaikwal
    @BeRaikwal 3 роки тому +1

    YOOOOOOOOOOO!!!!!!!!! AMAZING TUTORIALS AS ALWAYSS!!! 😎🤩😌

  • @athethird
    @athethird 3 роки тому +1

    thankyou dude, good job! I've learned a lot from you :D

  • @MJ-qk8nr
    @MJ-qk8nr 3 роки тому +1

    Just subscribed. Amazing

  • @MuhammadAshraf-lo7pp
    @MuhammadAshraf-lo7pp 3 роки тому +1

    Love and huge respect for you brother....Respect from Pakistan...My online teachers....Much respect for you all....

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому

      Thank you! I'm glad the videos are useful :)

  • @sonicfan88321
    @sonicfan88321 2 роки тому +1

    as someone who's spent the better part of a year coding to pep8 standards, your code annoys me
    But otherwise, great video series. Loved following along and trying to keep up

  • @semtx13
    @semtx13 3 роки тому +1

    Sweet! I look forward to coding this. How often will these videos come out?

  • @buymicheats
    @buymicheats 3 роки тому +4

    Having problems getting the character files into the code. i have them all in a file called player and when I enter their specific name it will not input that image?

    • @eliasbegashaw1707
      @eliasbegashaw1707 3 роки тому

      you need to edit the file player onto the programming language you use

    • @animevideos9213
      @animevideos9213 3 роки тому

      @@eliasbegashaw1707 What do you mean by that Can you plss explain me in detail I have everytime I put full path of images it's shows an error plss help 🙏🙏🙏

  • @anirudhasahu3035
    @anirudhasahu3035 2 роки тому +4

    your explaination and the game is totally amazing🤩😊
    can u give the link to download these images
    or how to get these types of images

    • @CodingWithRuss
      @CodingWithRuss  2 роки тому +1

      Thanks! Yes the images are on the github repo in the video description

  • @GAMEOLOGIST
    @GAMEOLOGIST 3 роки тому +1

    Awesome tutorial 😍

  • @chinraymond311
    @chinraymond311 3 роки тому +2

    is there any tutorial that teach how to import images cause i having problem with it

  • @brhvoicu
    @brhvoicu 3 роки тому +1

    Hello there! I am here to learn pygame and i just noticed that you don;t have an icon. To do that just put the next code:
    icon = pygame.display.image.load("imagename.png")
    pygame.display.set_icon(icon)

  • @FireBlender
    @FireBlender 2 роки тому +1

    thanks it's really good

  • @dr_frankenmiller2607
    @dr_frankenmiller2607 2 роки тому +1

    Thank you Russ all your awesome content walking us thru such cool Pygame builds, Hey Russ let's build Mario World 3 one these days the game engine and the level editor I want that game on MacBook so much the music the music baby Yoshi, are we allowed to build that game on UA-cam w/o upsetting anyone?

  • @adityagarg6734
    @adityagarg6734 3 роки тому +2

    great job bro!!!!

  • @valuecoast
    @valuecoast 2 роки тому

    don't give up!, there are more difficult programs then tNice tutorials one

  • @josebatista6259
    @josebatista6259 2 роки тому

    Amazing class!

  • @lucasgardner6189
    @lucasgardner6189 3 роки тому

    Hey, I burned through your original platformer series last night and I decided to try to make something of my own. I have a quick question though, when I try to set my window, I keep getting a error that says "video system not initialized." I have double and triple checked my code and it is IDENTICAL to yours at the 04:12 timestamp in this video. Any thoughts? I've googled all over the place to no avail. Thanks for your time

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому

      Hi Lucas, I've had some weird errors like that too sometimes even though the code is the same that I've used on other games. Maybe download the code from the link in the description and see if that runs OK?

    • @lucasgardner6189
      @lucasgardner6189 3 роки тому +1

      @@CodingWithRuss thanks for the reply, I finally figured it out. For some reason I overlooked the fact that pygame.QUIT needed a colon instead of an open parenthesis. I'm really enjoying building my first game and you're helping me out quite a lot. Thanks again!

  • @miguelmondragon1366
    @miguelmondragon1366 Рік тому +1

    Nice tutorial

  • @kshawn2579
    @kshawn2579 Рік тому

    Bro You are the best! but still why is your popularity so low? 😐😐☹☹

  • @danielfajardo4558
    @danielfajardo4558 2 роки тому

    Dw bro ADHD helps out so much with soft soft i find. day dreaming always gives new ideas so when i snap back i got that vision ready

  • @coolguysau1766
    @coolguysau1766 27 днів тому

    hello, i just want to say i have a problem. i wrote in the code x = 200 to rect.center = (x, y) and it opens and closes even though i put in the code for it not to do that. help please?

  • @kartikeyamaney4871
    @kartikeyamaney4871 3 роки тому

    can you teach panda 3d too
    cause you are the best game developer I know on youtube and
    thanks for this amazing tutorial

  • @Myyraman
    @Myyraman Рік тому +1

    Really great tutorial but I have one problem, when I try to make a player 2 it ends up in the same X and Y position as player1.

    • @Shivu_Playss
      @Shivu_Playss Рік тому

      Same, I was thinking where is the other player 😅

  • @kieuvantube
    @kieuvantube 3 роки тому +1

    That amazing I like it

  • @1_and_only_Crjase
    @1_and_only_Crjase 3 роки тому +1

    well explained 👍

  • @aakash2333
    @aakash2333 3 роки тому +1

    Thank you very much sir. Clearly understand.
    Sir please make the playlist for Super Mario game

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому

      Thanks! Glad you liked it. Super Mario would be pretty interesting to remake for sure!

  • @why7636
    @why7636 3 роки тому +2

    What do I do with the assets

  • @mlisaglisa9049
    @mlisaglisa9049 3 роки тому +1

    i can't connect images to my work. how do i fix it.
    line 15, in that is what pop up

  • @thundertitans
    @thundertitans 9 місяців тому

    Hi! I had a question about the image. I think you need the image for the character to already be saved, so where would I find this?

    • @CodingWithRuss
      @CodingWithRuss  9 місяців тому

      Hello, the images are all available to download from my github. I've linked it in the video description

  • @Lapisdolphin
    @Lapisdolphin 8 місяців тому

    wow this is so cool! How long did you spend making this set of videos?😃😃😃

  • @engineerstrange7381
    @engineerstrange7381 3 роки тому +2

    ❤️❤️❤️❤️❤️❤️❤️thank you so much

  • @dhruvpaidukle835
    @dhruvpaidukle835 3 роки тому

    Helped me alot thanks

  • @abrarmasumabir3809
    @abrarmasumabir3809 3 роки тому +1

    You are awesome!

  • @vakogrigolia8138
    @vakogrigolia8138 3 роки тому +2

    it says FileNotFoundError: No such file or directory.

  • @patricxd9895
    @patricxd9895 2 роки тому

    clips. I use a drum loop and afterwards I want to record a appguitar. What happens.. the drumloop starts to record again along the

  • @yeonve
    @yeonve 3 роки тому +1

    THANK YOU SO MUCH YOUR THE BEST I SUBSCRIBE 🙏🙏🙏🙏

  • @shockz6970
    @shockz6970 3 роки тому +1

    Nice Video! Just one small problem. For line 15, I put in the same code (just with my own png), and it can't find the file. I also typed img = pygame.image.load('insert my png'), and it still can't find the png. Is there a way to troubleshoot?

    • @andrewgilmore9181
      @andrewgilmore9181 3 роки тому +1

      you have to put all the images that you want to use in a file named 'img' , then you put that file into the projet file

    • @shockz6970
      @shockz6970 3 роки тому

      @@andrewgilmore9181 Oh, now that makes sense :) Thanks!

  • @phoenixninja8872
    @phoenixninja8872 3 роки тому

    What’s the schedule planning for this series like... what’ll be the frequency per time period do you want/ expect to upload it

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому +1

      I'll try to upload every 2-3 days

    • @susmitdas
      @susmitdas 3 роки тому

      @@CodingWithRuss thank you

    • @steenpower6761
      @steenpower6761 3 роки тому

      @@CodingWithRuss Great stuff man, looks great! How many parts in total do you think it is gonna be?

    • @CodingWithRuss
      @CodingWithRuss  3 роки тому

      @@steenpower6761 Thanks! Looking like about a dozen parts at the moment! This game turned out bigger than I expected

  • @inaayaa7144
    @inaayaa7144 3 роки тому +2

    I'm having a problem in the code, it says
    AttributeError: 'Soldier' object has no attribute 'draw'
    please help me fix this problem,
    thank you.

    • @nonstalgic6476
      @nonstalgic6476 3 місяці тому

      ik this is 3 years later but if ‘Soldier’ is an image then it can’t have the attribute ‘draw’

  • @muchiitv9912
    @muchiitv9912 2 роки тому +3

    Def:😁😁😁😁 class:💀💀💀💀💀💀