PyGame Tile Based Platformer Game Beginner Tutorial in Python - PART 1 | Creating the World

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

КОМЕНТАРІ • 894

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

    Hi Folks, hope you found this tutorial useful. The code and images for the video are in the video description above.
    Let me know what you think! And don't forget to like and subscribe 😀

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

      Is this plarform game suitable for class12 final practical project please reply quickly it's urgent

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

      And how many part this have

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

      Thanks a lot but how would you implement a camera cause before when I made platforms manually I would just change positions, but it’s harder with this, if you you read this pls help

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

      Don’t worry after some playing around I got if you work

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

      @@becauseimtobyfilms3559 Glad you got it working!

  • @davidleaskhome
    @davidleaskhome 3 роки тому +72

    As a novice this is fantastic. I will dissect each video and learn the concepts at my own pace. You have a very clear, logical approach that is so helpful. Thank you for all your hard work. You have something special here!

  • @gabrielaxelsson6079
    @gabrielaxelsson6079 3 роки тому +20

    This is totally the best video on game coding I've ever come across. Explains everything in detail while providing will to do something alike in the future, keep it up!

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

      Thank you, glad you find these tutorials useful!

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

      @@CodingWithRuss YOU ARE AWESOME!

  • @soupnoodles
    @soupnoodles 3 роки тому +14

    It was a really good explanation, i really loved it, i hope you will keep making tutorials cause both your voice and explanation skills are epic!

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

    Very good tutorial! Just finished the first part and everything is explained very well and at a good pace! Looking forward to the following parts

  • @JoseLopez-wh7xe
    @JoseLopez-wh7xe 3 роки тому +1

    The simple idea of a tile system is so impressive totally blows my mind!

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

      Most plataformers use some kind of tile system for building levels its easier to re use assets this way

  • @zxlrgaming3414
    @zxlrgaming3414 3 роки тому +6

    Even though I can't listen to the audio, following the steps to write the code is still easy as ever. You are the best1

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

    You are seriously underrated. You need to get 1 million subs by now!!!

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

    I’m a student at IT information technology so we study Python and Java scripts and more but I do a lot of research and gather information about this stuff I’m so good and smart when it comes to codding I’m so smart and good in it I’ve already made some projects and games on pycharm but this will definitely be my next one ima go work on it I’ll show this to my Python teacher it would be amazing thanks for this bro ❤❤ big support to u

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

    You uploud this Video on my Birthday

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

    As a complete beginner who has been learning python for about a year and started learning other parts of it, awesome. Definitely clear and easy to understand. thanks

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

      Thank you! Glad to hear these videos are helpful

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

    For those asking which editor I am using - it is called "Sublime Text"

  • @Shy_Guy_5087
    @Shy_Guy_5087 3 роки тому +10

    Thanks a lot Russ you made my day by making a course worth 1000s available for free . Thanks a lot once again may god bless you and your channel get 1 M subs soon

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

      Thanks for the kind words, I'm glad you found the tutorial helpful :)

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

    Keeping grinding brother love from India ❤

  • @imakeangelscry
    @imakeangelscry 3 роки тому +17

    thanks for the 10/10 awesome tutorial. the only reason im passing computer science atm

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

    because of this video now i know how to add pictures in python THANK YOU!

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

    It is a really helpful, good and perfect masterpiece good work keep it on.I guess your channel will go ahead

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

    always amazing videos youtube algorithms ignores them

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

    because of this tutorial i was able to to make my own precision platform jumper game in pygame and release it on steam. thank you for this series dude!

  • @future9715
    @future9715 3 роки тому +10

    What an amazing tutorial! I've been looking for it for a while.

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

    This was a really good tutorial. I'm just getting into OOP and this was very helpful.

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

    Having just started a pygame channel found this super useful. Thanks 👍

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

      Great to hear! P.s. Your animated handwriting is really cool!

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

    Fantastic video and very helpful for brushing up on my rusty Pygame knowledge. Thanks Russ!

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

    Your channel is totally underrated. You basically helped save my coding career

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

    Awesome. Thank you for sharing this with the rest of the world. Be Blessed. Salutations from France.

  • @personalitiesfromdifferent1835
    @personalitiesfromdifferent1835 5 місяців тому +1

    I came form your shooter game series and this series is basic course of shooter game series guys

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

    the tilemap helped me understand how tilemaps work ty

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

    Thanks a lot for this mario-like game using pygame. Very clear and to the point.

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

    this has to be one of the best pygame vids I've ever came across, looking forward to watch the who series, thanks again mate 💙

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

    If you are having an error that says "FileNotFoundError: No such file or directory", make sure you have downloaded the assets (images & sounds) from the link in the description and put them into a folder called "img"

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

      That's ok but if you are creating a folder so it must be saved in a location like in the PC's, documents, but how do you set the location of images without any location like this

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

      Can you please help me, where do i put my folder cause i saved the pictures you uploaded in the links into a folder called img but it still says error

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

      @@rohithmatthewsgiji9206 me too same error

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

      @@rohithmatthewsgiji9206 make sure it is in the same directory as your current working directory, else it will not find it

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

      wich sofware you are using, plz tell

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

    pretty fast explaining and usefull not wasting time at all.
    LOVE IT💙💙💙

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

    Thanks this helped me and my friends A LOT

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

    20:35 list in the description 🙂.Thanks for tutorial, it is the best.

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

      Oops! This video has been up for a year like this and I never noticed! Oh well, I've since added the github link to the code which has that list for people to copy :)

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

      @@CodingWithRuss ok thanks

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

    Great vid - a mine of info for me to absorb and try, and very well explained. Thank you!

  • @Sam-cz7ck
    @Sam-cz7ck 3 роки тому +3

    This video is awesome!! Thank you for the awesome explanation 😊

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

    under rated youtuber. amazing

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

    THANKS i need a teacher like you in my life

  • @s.dh29
    @s.dh29 3 роки тому +1

    cant believe that i was here when u had 2k!

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

    Exactly what I was looking for, thanks you!

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

    9:18
    : :
    just press "ctrl +D" to copy the content directly to next line :D

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

    pretty fast explaining and usefull LOVE IT 💙💙💙

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

    I knew it would be a great tutorial from the beginning, thanks a lot😀😃😃😄😁👍👏👏👍

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

    Amazing video, helped me out a lot!

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

    U r osm..❤️❤️❤️bro U make a Lots OG games..For.Giving Us best Experience

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

    Bro you should be getting way more subscribers from this!!! So i'll subscribe

  • @karim-ut9gs
    @karim-ut9gs 11 місяців тому

    i have a homework that if i do the best project in the school i would get the maximum grade every time this year without doing exam or anything i think with you i would get it thx for the beatiful content

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

    Really 👍 good, I only know some what of batch file but still can understand what you are coding nice way of explaining

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

    I wanted this only! Thanku very much bro !

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

    Thanks for this insane complete Tutorial. Thats help alot :)

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

    Hey, that game over sound is from brawl of the objects

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

    youve done a wonderful job explaining this thanks for the help keep up the awesome content (:

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

    Very simple, thanks!

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

    Amazing Video! I was wondering if you made all the img's from scratch and is so how you did that? If not is there a website you got the jpgs from?

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

      Thanks! I made the clouds and sun in paint but the rest I got online as free assets. I didn't keep track of where I got them from at the time though so I can't credit the source unfortunately. I started doing that since then so the assets are listed in the video descriptions, but just not for this one.

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

    Hi, really good video and explanation, really helped me! Are you gonna upload the level editor aswell? I want to make my own levels, and it would of course be much easier to do it with the level editor instead of doing it all manually. Thanks for the good tutorial!

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

      Hi, I've just uploaded it to github now. make sure to put it in the same folder as your main code and level_data files: github.com/russs123/Platformer/blob/master/level_editor.py

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

      @@CodingWithRuss Thanks mate!

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

      @@CodingWithRuss having trouble with level editor ..where do you get the numbers and/or how doyoiu load the level that you made into your game. Or does that happen later on in this tutorial?

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

      @@jerrytelevision Hi Jerry, yes I explain all that gradually as the videos go on. I uploaded the code as some people wanted to make their own levels, but it isn't required if you're just following the videos.

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

    I enjoyed this a lot.
    Don't know about calling pygame.transform.scale for every tile though since it only needs to be called once for each type of img since the arguments doesn't change. Then run copy() on it or something.

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

    I love this tutorial lot

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

    You're a weapon Russ

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

    Amazing vid, just how do you actually put in the image files? I'm a bit confused how you format it.

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

      Never mind I figured it out.

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

    good video but next time please think about, adding comments to your code for instance at the row/columns parts thanks

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

    great tutorial package!!

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

    You really need a set up video. I have been learning python, however i have never opened any of this stuff before and don't know where we are even importing from.

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

    which version or application you are using to make this game? loved your videos

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

    super it helped me out I got first place thanks I subscribed and liked

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

    Cool, but prefer Unix system V and BSD, for example freebsd with C/C++ and pascal.
    Cool demoscene.

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

    Also I'm making my own textures what do you recommend for the height and width? And whenever I do this code, the ground spawns at the top instead of around the whole screen.
    EDIT: I found my issue and fixed it!

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

    this is a op tutorial.Thanks

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

    thank you very very very much, you help me a lot

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

    Great tutorial!

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

    god thank you i found this vid

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

    thanks, this is a cool tutorial.

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

    Very detailed and good explanations. Thanks!

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

    This video is amazing! Thank y very much :)

  • @abcdefghijklmnopqrstuvwxyz9206

    thanks so much for this! just wondering, does this work on Thonny? Im using it for my coding.

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

      Hi, I've never used Thonny but the code should run in any editor. You can try it and see if it works or if you get any errors.

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

    Amazing content . Keep it going ! Thank you :)

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

    very helpful, kepp up and make more video's

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

    great tutorial

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

      Thanks!

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

      @@CodingWithRuss please..make a video on camera movement .with game character.

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

      @@sksahil4374 Already done, I have a complete game tutorial with camera scrolling :) ua-cam.com/video/DHgj5jhMJKg/v-deo.html

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

      @@CodingWithRuss great .can you made game with pymunk physics library ?

  • @user-ln7sm3oe9e
    @user-ln7sm3oe9e 3 роки тому

    amazing tutorial

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

    You are perfect. Best of them .

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

    this will be helpful

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

    how do you put the picture into pygame which directory does it have to go in files i am using pycharm

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

    I have one question.. is the world data you put in the code.. all the ones and zeroes. Is that really that it how to create levels? Or that method for newbie game devs? Or is that the main and ultimately will be used throughout my journey of creating games in python?..

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

      It really depends on the kind of game that's being made. For something like this that uses a level made up of tiles it makes sense to create a file that stores that information in a simple way that is quick to read by the program.

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

    This is such an invaluable tutorial!

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

      Thank you :)

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

      U don't need to write your thoughts just dislike if you want 😒😒😒😒

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

    Great video, just wanted to ask how do I run the code in Sublime Text?

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

      Thanks. It's Tools -> Build. The shortcut is ctrl+b

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

    Wow Its soo amazing

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

    Hello! This is a really good tutorial! And its very helpful! The only problem is that the game cant show up on my screen please tell me how to fix this, I already downloaded the sprites and sounds.

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

    Hi russ, i have enjoyed learning and creating with you in this series. you describe things so well, and makes learning very easy. I wanted to ask for some hep with a problem I'm having with my code. the platforms seem to be in the wrong place, and overlap the dirt blocks. I wanted to know how I can fix this. Thank you

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

    Thanks good job

  • @AyanJain-w8k
    @AyanJain-w8k Рік тому +2

    W tutorial

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

    Very helpful, thank you

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

    Part 2 - "Creating the player" now uploaded: ua-cam.com/video/W_JRd3ntyBg/v-deo.html

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

    When I add a image, the window disappears. Please reply me because this problem has been going on for a year now، Sorry I use Google Translate because I am from Arab and my English is not good

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

    Can you make a video about how to animate sprite sheets?

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

      Hi, I've just uploaded the 3rd video for this platformer, which shows how to do animation: ua-cam.com/video/gaGh-zlkrtE/v-deo.html

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

    I am not able to make the backround show up and the sun how do i do that?

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

    thanks lord

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

    where do you get the "sky" and "sun" image from? They are not in the folders I downloaded

  • @UpperLevelHero
    @UpperLevelHero 2 місяці тому

    Your video is very good. Please help me with something. My screen is showing the height and width as very large. How can I reduce it
    😭😭😭😭😭😭😭😭😭

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

    Excuse my ignorance, but I have been seeing a lot of UA-cam videos showing the entire project in one python file. I was taught to put classes in one file, urls in one file, views etc... What is the purpose of putting everything in one file? Do you ever write your code in multiple files? Thank you :)

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

      It depends really and for longer code it definitely makes sense to split things out, but I felt it would make the tutorials harder to follow so I have put everything in the same file.

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

      @@CodingWithRuss That makes sense, thank you!

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

    thats really good 😎 im only 12 and im really skilled in edtiting videos and im gonna start programming

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

    Thanks!

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

    is this sublime text ?