Pygame Tutorial for Beginners - Python Game Development Course

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • Learn how to use Pygame to code games with Python. In this full tutorial course, you will learn Pygame by building a space invaders game. The course will help you understand the main game development concepts like moving characters, shooting bullets, and more.
    💻 Code: github.com/attreyabhatt/Space...
    🎥 Course created by buildwithpython. Check out his RUclips channel: / @buildwithpython
    ⌨️ (0:00:00) Installing Python and Pycharm
    ⌨️ (0:04:12) Creating Our First Game Window
    ⌨️ (0:12:39) Changing the Title, Logo and Background Color
    ⌨️ (0:20:33) Adding Images into Our Space Invader Game
    ⌨️ (0:29:57) Movement Mechanics in Game Development
    ⌨️ (0:38:13) Keyboard Input Controls & Key Pressed Event
    ⌨️ (0:49:53) Adding Boundaries to Our Game
    ⌨️ (0:53:28) Creating the Enemy
    ⌨️ (0:59:14) Movement Mechanics of the Enemy Space Invader
    ⌨️ (1:06:51) Adding a Background Image
    ⌨️ (1:12:08) Creating Bullets for Shooting
    ⌨️ (1:26:21) Shooting Multiple Bullets at Space Invaders
    ⌨️ (1:34:24) Collision Detection
    ⌨️ (1:48:05) Creating Multiple Enemies
    ⌨️ (1:55:08) Adding Text and Displaying Score
    ⌨️ (2:03:17) Adding Sounds and Background Music
    ⌨️ (2:09:05) Game Over
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: www.freecodecamp.org/news

Комментарии • 3,2 тыс.

  • @davidmargis3476
    @davidmargis3476 3 года назад +180

    This has to be the most useful learn-by-doing Pygame tutorial I've seen. You start with the basics, explain what you want to do and how Pygame allows you to do it, and work it in with concepts a learning programmer should be aware of, without jumping right into the more complex aspects.

  • @traumaterasu
    @traumaterasu 3 года назад +767

    First guy who has made a proper tutorial glad to see that people like them exist in this world

    • @37.vigneshgopal3
      @37.vigneshgopal3 3 года назад +19

      Indians rock bro. Wait r u indian????

    • @object5369
      @object5369 3 года назад +1

      You are so much true

    • @object5369
      @object5369 3 года назад +1

      @@37.vigneshgopal3 l am Indian. I am proud

    • @traumaterasu
      @traumaterasu 3 года назад

      @@object5369 yeaaaa

    • @7a53vinay4
      @7a53vinay4 3 года назад

      Yea man

  • @WatOnsonn
    @WatOnsonn 3 года назад +628

    1:35:00
    For collision detection pygame actually has a method called 'colliderect' which detects collision between rectangles. So, if you want to check if the enemy rectangle has collided with the bullet rectangle, instead of checking the distance between the two for every frame, you just write:
    if enemy_rectangle.colliderect(bullet_rectangle)
    [whatever you want to do when the enemy collides with a bullet, or vice versa]
    Hope this helps

    • @chimimiiiii
      @chimimiiiii 3 года назад +3

      thanks for the tip

    • @hossumquat
      @hossumquat 3 года назад +6

      Is it simple rectangle overlap? Or does it then further check for pixel overlap (if there is transparency in either image)?

    • @kasperpettersson1804
      @kasperpettersson1804 3 года назад +6

      @@hossumquat im trying to figure out the same, gotten any results? Also how do you call the enemy rectangle if the enemy is an image?

    • @bigshrek2324
      @bigshrek2324 2 года назад +1

      helped soo much thanks

    • @adlerdoesstuff1872
      @adlerdoesstuff1872 2 года назад +13

      why are you even here your an expert

  • @seaburyacademy
    @seaburyacademy 3 года назад +75

    I imagine you might not be monitoring the comments anymore by now, but I'm finding this really helpful! I have to try to help some students pick up some programming skills, and this tutorial is great! The detail that you go into about why things have to be the way they are is very helpful. Thanks!

  • @justinmccoy4270
    @justinmccoy4270 3 года назад +13

    Great tutorial bruh, really easy to follow along to without speed up or slow down on video play speed. Didn't slow talk the basics like it's somehow news that a String can be a variable value or something. Just gets right into a python library and explains how to build a game.

  • @rakstar343
    @rakstar343 4 года назад +1949

    bruh listening to indian dudes on youtube is wayyyyy better than school

    • @Dante-nu5cn
      @Dante-nu5cn 3 года назад +48

      Lol I was just thinking the same

    • @its_layth2530
      @its_layth2530 3 года назад +19

      no it is not
      .

    • @binku09
      @binku09 3 года назад +37

      @@its_layth2530 you might be enjoying something else. Why tell everybody??

    • @Anu-hv2pp
      @Anu-hv2pp 3 года назад +15

      Right?! I was assigned to make a game using pygame but my teachers such a horrible teacher that no one understood anything 😃-

    • @TheRealOderless635gnat
      @TheRealOderless635gnat 3 года назад +3

      @saketh p
      #ThioJoke

  • @TreBros
    @TreBros 3 года назад +8

    Awesome Tutorial! Thank you for the spread of your knowledge! Super grateful for people like you who take the time to explain how and why it works and why it does not! That is definitely good teaching practices! I wish my CS teachers were as good as you when it comes to explaining the internals of code! Much appreciated! Take care!

  • @walrusdaboss5162
    @walrusdaboss5162 3 года назад +32

    I watched the whole thing. THANK YOU SO MUCH.
    I learned so much.
    Legend.

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

    Very beginner friendly, you have taught in a step by step manner that allows us students to try them out , which is very helpful and needed. Thank you .

  • @marlonsolleske7466
    @marlonsolleske7466 3 года назад +3

    Really cool coding exercise covering the basics. Great fun while following throw it and playing with the functions here and there. Keep up the good work and kindly share more courses like this one. Also looking forward to a object-oriented approach for games involving lots of sprites. Thanks again.

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

    I love this guy! He explains all the function of python so well, it really makes me want to learn more. Keep it up!

  • @mateoingouville
    @mateoingouville 2 года назад +1

    Thank you! I know less than jon snow about programming, but I followed your every step and I made my own game with my own cool graphics and story. And I think I understood most of it, even the collision part. Great teacher.

  • @pastorfred2543
    @pastorfred2543 4 года назад +440

    I still can't figure out why this channel is so amazing with its video contents and on top of that ABSOLUTELY FREE.

    • @harshlahoti8368
      @harshlahoti8368 4 года назад +3

      ikr

    • @motozeu_vlgs
      @motozeu_vlgs 4 года назад +11

      This channel is pure HEAVEN!

    • @samuelamare3080
      @samuelamare3080 4 года назад +22

      Don't give them any ideas

    • @Red-yq6nc
      @Red-yq6nc 4 года назад +15

      @@@samuelamare3080 Dont worry this will always be free they have a paid version which is like an other site named CodeAcademy. However i like how the quality of the content is so high but it still is free, its like standfords free machine learning course videos

    • @themoneyhive2820
      @themoneyhive2820 4 года назад +1

      they still get ad money bruh

  • @novartisnk9684
    @novartisnk9684 3 года назад +7

    well this is one of the best tutorials that I've seen.
    It's so easy to understand and well-explained also those recaps after each lesson are so awesome
    Thank you so much 🙏🙏

  • @manthilaranatunga5142
    @manthilaranatunga5142 3 года назад +18

    This was a really good tutorial. He explained everything in detail. Highly recommend.

    • @topeverthing5963
      @topeverthing5963 3 года назад +1

      How do you add an image/icon to Pycharm? I had a lot of trouble trying to import a logo for the icon

  • @souvik_saha
    @souvik_saha 3 года назад +46

    1:06:00 these 2 conditions can be simplified as
    if enemyX = 736:
    enemyDx = -enemyDx
    enemyY += enemyDy
    this way the enemy speed value can be modified in the global only instead of changing in 3 different places

    • @rikthecuber
      @rikthecuber 2 года назад +4

      Yeah.
      Working with variables is much more comfortable than putting numbers.

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

      Ok but how do you make them return to 0 or 736 depending on if they end up less than 0 or more than 736

    • @hl-life8738
      @hl-life8738 6 месяцев назад

      ​@@adhirajsingh1806You don't have to. He already changed the movement direction. For example, enemy approach a border and turn back instantly and go to opposite direction with the same speed.

  • @officerfranktenpenny8509
    @officerfranktenpenny8509 3 года назад +22

    This is one of the best tutorials i have ever seen so far. You explain every line of code without leaving room for confusion. Thanks you for everything!

  • @rithvikyagnamurthy6560
    @rithvikyagnamurthy6560 4 года назад +232

    Many RUclipsrs and teachers skip over the function of each line of code or just spend so long on theory that even interested students don’t want to learn anymore... You are the complete opposite, you explain each line of code, what it actually does, how it runs and go at a nice and steady pace so that everyone can understand! Hats off to you sir!

  • @lakshmikanthmhetre2833
    @lakshmikanthmhetre2833 3 года назад +16

    some how after adding sound effect the game feels soooo cool... well by the way must complete the full tutorial. its gr8.

  • @saisankalp25
    @saisankalp25 3 года назад +3

    I have searched a lot of videos for pygame but none was as good as this
    Thank you

  • @spaceface2288
    @spaceface2288 4 года назад +6

    Its good that you are repeating many things again and again, its actually really helpful for us, beginners as we tend to miss out on details sometimes.

  • @njrocks8606
    @njrocks8606 3 года назад +43

    This tutorial was amazing, I've learned so many concepts in python game development.

    • @vladusa
      @vladusa 3 года назад +2

      Python wasn't really designed for it.. it is really important, though, to apply Pygame knowledge to future computer vision projects (if you choose to do so). CV2 is super valuable in combination with pygame and blitting.

  • @programmingwithraahim
    @programmingwithraahim 2 года назад

    Brilliant Man, brilliant video. I like that this man is teaching python as well as telling us all the resources for the needy things. This is just awesome. Thank you for this tutorial of space invaders.

  • @puttygutt
    @puttygutt 3 года назад

    Fantastic tutorial! Thank you for taking the time to do this. Much appreciated.

  • @djlazer1
    @djlazer1 3 года назад +210

    It's funny how he explains that adding negative numbers is subtracting but also assumes we know the distance between two points algebraic equation

    • @troyna77
      @troyna77 3 года назад +1

      If you've installed python (by yourself)you definitely know the distance between two points formulas in all it's forms. It's math. If you think this is hard, Wait until you need to apply trig functions.

    • @TheRealLyonic
      @TheRealLyonic 3 года назад +48

      @@troyna77 I'm afraid this is actually objectively false. The principals of Algebra-However basic in this example- have absolutely nothing to do with the ability to use a computer to connect to the internet and then click the download button on the Python public website. Furthermore, on your-poorly hidden- implication that you can't be a real programmer without the backhand knowledge of both Algebra and-at least fundamental- Trigonometry, there are plenty of programmers who have created respectable and renowned programs without the use of any Algebraic Formulas for calculating distance or any Trigonometry. And though I understand it's probably a bit hard for you to understand, these people are just as much of a programmer as you and me. This comment isn't a good-willed attempt to clarify the mindset of the instructor, it's a short-sighted jab at someone who just wanted to make a joke. And quite frankly, the fact that there are people like this outwardly representing this art in this way appalls me.

    • @devarora7041
      @devarora7041 3 года назад +8

      @@TheRealLyonic wowza

    • @GameDevNerd
      @GameDevNerd 3 года назад +1

      @@TheRealLyonic well said ... trigonometry also isn't objectively "difficult" to use in programming, you're just calling a function and letting it do all the calculations for you. The only important thing is to know why and when you need to call a particular function and what part of the result matters to you. Someone who needs to know can learn it by reading some simple rules about trigonometry and what the terminology means. But in no way is trigonometry connected to how good of a programmer someone is, unless they work in a very specific field where it's critically important. I'm DirectX/C++ programming and Unity/C# development (which is considerably more complex) I only used trigonometry in a few isolated cases where I found some novel use for the properties of triangles, like determining how high off a ground an object will be if it's rotated about an axis X-distance away from by so many radians. That guy's comment reads like someone with no dev experience trying to sound like an elitist expert by tossing around some things that sound intimidating and pretending to understand them lol.

    • @TheRealLyonic
      @TheRealLyonic 3 года назад +1

      @@GameDevNerd I agree completely! And appreciate the well-thought out reply. Also, I respect the DirectX/C++ programming stuff, I focus more on Java and the Web Development tools (HTML, CSS, and Javascript), and always found that stuff to be a bit complicated for my understanding. Though, I will say, I actually worked in Unity with C# for a while too a good bit ago, which was relatively easy to migrate into language wise, since Java and C# are almost the exact same language in terms of Syntax. Though it did take a while for me to learn the ins and outs of Unity as a game engine, working with Rigidbodies and all the other various elements in a game. All that being said, love the input, and thanks for the reply ❤️

  • @sydneywatson6487
    @sydneywatson6487 4 года назад +5

    Wow! You have answered all my questions! It's just like two weeks ago I said I wanted to make a game app and I had no idea at all where to start. So I began watching videos on RUclips and I found your video. I am so greatful for your video bro. I certainly subscribed to your channel and I look forward to more of your educational videos. I know you said it's all basic stuff but bro, for me, oh men believe me, it's so professional that I would call it advanced. But you made it so logical and fun that I understood everything. Muchas gracias...Merci beaucoup.

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

    Really enjoying how he explains everything well. Bit tedious for when you know basics, but it is a really good course, def recommend

  • @JeremydePrisco
    @JeremydePrisco 3 года назад

    Thanks for posting. You approach works much better than several other resources that I've tried.

  • @Pontiflex
    @Pontiflex 3 года назад +275

    the video: bullet_state = "Fire"
    boolean: "Am I a joke to you?"

    • @zasbirrahmanzayan8648
      @zasbirrahmanzayan8648 3 года назад +3

      ikr

    • @hossumquat
      @hossumquat 3 года назад +7

      Some things in this just don't make sense. Like the spaceship seems to be shooting from it's left and right cannons, but really you shoot a huge bullet from the nose of your ship. But hey, that's not the point, right? You should be focused on the education!

    • @alphasoundz9850
      @alphasoundz9850 3 года назад +1

      Truuueee haha😂

    • @4glassmilk635
      @4glassmilk635 2 года назад +8

      Boolean is fired
      Sorry

    • @akhandpathi7461
      @akhandpathi7461 2 года назад +1

      @@4glassmilk635 😂😂😂

  • @jwebbs999
    @jwebbs999 3 года назад +10

    Appreciated how digestible you made everything. Tough material to do that with 👍👍

  • @ixbx897
    @ixbx897 2 года назад +1

    Thank you so much! I have been wanting to learn how to make a game with python for ages!

  • @mateusz11123
    @mateusz11123 3 года назад +1

    Thank you soo much! It's soo good that you comment every thing you writhe using the #, it's VERY VERY helpful for beginners! :)

  • @pinkdolphin8017
    @pinkdolphin8017 3 года назад +179

    Only this man can make a spaceship question their existence

  • @animelegendsxy9278
    @animelegendsxy9278 Год назад +11

    You are really a good teacher . I don't know why but i guess Indian college would be disappear in the upcoming years if legends like you keep teaching.
    Keep going it love you 3000
    The things we learnt in 2 hours in this video our college's will take more than 1 month to cover all of this method .....

  • @anuragsaini8689
    @anuragsaini8689 2 года назад

    You made it vey nicely and easy. Please keep making tutorials like this so we can learn more. Thank you for investing your time for us. Lots of love for you.
    Thankyou again.

  • @fdhyunseo
    @fdhyunseo 3 года назад +3

    WOW! This tutorial is incredible! Thank you very much!

  • @sakifhossain5424
    @sakifhossain5424 4 года назад +11

    In my few months of learning coding
    this video has brought a lot of positive vibe to me as
    i finally got the feeling of creating something solid real
    thank you

  • @Jotaro-o
    @Jotaro-o 3 года назад +14

    Great tutorial! After watching I made it so the enemies could fire bullets to make it a bit more interesting

    • @diablos2933
      @diablos2933 2 года назад +1

      Just to Clarify would you take the spaceships shooting speed and then put it on an enemy sorry for asking a stupid question I am New to Python

    • @hello-wx9wh
      @hello-wx9wh Год назад

      how did u set at what place the bullets will spawn?

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

      @@hello-wx9wh the enemy variables

  • @tayliecarlson7830
    @tayliecarlson7830 2 года назад +1

    Great tutorial! I am new to coding and have loved this tutorial! I have learned so much about pygame!!! Thanks

  • @misternoobie
    @misternoobie 3 года назад

    Thank you for this. I missed coding with python and i don't know where to start again; this is a great start for me.

  • @solomonleo3025
    @solomonleo3025 3 года назад +18

    49:30 lol, at least you said something to laugh during the tension! 😂😂

  • @r_u_p_d9776
    @r_u_p_d9776 4 года назад +321

    ⌨️ (0:00:00) Installing Python and Pycharm
    ⌨️ (0:04:12) Creating Our First Game Window
    ⌨️ (0:12:39) Changing the Title, Logo and Background Color
    ⌨️ (0:20:33) Adding Images into Our Space Invader Game
    ⌨️ (0:29:57) Movement Mechanics in Game Development
    ⌨️ (0:38:13) Keyboard Input Controls & Key Pressed Event
    ⌨️ (0:49:53) Adding Boundaries to Our Game
    ⌨️ (0:53:28) Creating the Enemy
    ⌨️ (0:59:14) Movement Mechanics of the Enemy Space Invader
    ⌨️ (1:06:51) Adding a Background Image
    ⌨️ (1:12:08) Creating Bullets for Shooting
    ⌨️ (1:26:21) Shooting Multiple Bullets at Space Invaders
    ⌨️ (1:34:24) Collision Detection
    ⌨️ (1:48:05) Creating Multiple Enemies
    ⌨️ (1:55:08) Adding Text and Displaying Score
    ⌨️ (2:03:17) Adding Sounds and Background Music
    ⌨️ (2:09:05) Game Over
    Enjoy!

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

    just finished this tutorial - it's great. Many thanks for making this and making it easy to follow.

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

    This is how teaching should be!!!🙏🙏🙏
    Huge respect, from a student to you, sir...

  • @maniiiisha
    @maniiiisha 3 года назад +18

    Getting your Oscar ready.
    It was like a damn good crash course.

  • @templeOfChrist1994
    @templeOfChrist1994 3 года назад +3

    Best way to learn when watching these videos for me at least was to watch each section, example: displaying the window, adding icon. Then go and try it yourself without re watching that section. If you run into a problem remembering what he typed just go look it up and search around instead of just re-watching what he typed out. Thank you for these videos!

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

    Thank you a lot , this video is brilliant created by you hoping soon to give more tutorials on this channel!!

  • @Alisha-wo1zq
    @Alisha-wo1zq Год назад +2

    What a Amazing Tutorial , this one is great one, I have ever seen and it was good explanation too.

  • @cipher8400
    @cipher8400 4 года назад +20

    59:00
    (just letting myself know where i left off)
    EDIT 2: Finished :)

  • @denaldohuggins2816
    @denaldohuggins2816 3 года назад +3

    I can't express how happy I am for this video

  • @excalibur15000
    @excalibur15000 2 года назад

    Thank you! IT REALLY HELPED OUT! I hope all of us get better in the future!:D

  • @kibble43
    @kibble43 3 года назад +4

    You just earned yourself a like !

  • @RaviKumar-xs8ff
    @RaviKumar-xs8ff 3 года назад +3

    Thank you so much sir
    It will help for my school' project🙏

  • @yasmeengrewal7369
    @yasmeengrewal7369 3 года назад +2

    completed the tutorial. Yayyy! thanks for the amazing tutorial.

  • @dotboyclay
    @dotboyclay 3 года назад

    Lots of fun to follow along with , im new to coding and these codecamp tutorials are my best friend atm LOL

  • @dconnectzone
    @dconnectzone 4 года назад +47

    Ok! This is just mind blowing i was searching for pygame and here notification comes.... :)
    Very very very much thank you for providing all useful/ informative stuff for free.

    • @buildwithpython
      @buildwithpython 4 года назад +8

      Well glad I could help. And freecodecamp comes to the rescue!

    • @Importunity
      @Importunity 4 года назад

      @@buildwithpython why not create separate classes for different entities?

    • @buildwithpython
      @buildwithpython 4 года назад +9

      @@Importunity I could have but didn't want to make it too complicated for beginners. They are here to learn to learn Pygame. People who already know about classes can add it easily on their own.

  • @poseidonbrozeus5888
    @poseidonbrozeus5888 4 года назад +134

    Is it just me, or did this dude just clear up most of the magic tricks I have seen in my life.

    • @jorgeskts
      @jorgeskts 4 года назад +2

      Ikr destoying the whole magic industry

    • @olliboy965
      @olliboy965 4 года назад

      @@jorgeskts ah yes, the magic industry

    • @typicalkhaios2475
      @typicalkhaios2475 4 года назад

      tru tho

  • @Maheshwar1524
    @Maheshwar1524 3 года назад +1

    I want to press the like button 100000 times. This is the best video I have ever seen on this topic. Great Sir..keep it up.

  • @sambhramrvijapur8701
    @sambhramrvijapur8701 3 года назад

    ur explaination is at another level and u made me understand the actual coding thx a lot

  • @deadeye1982a
    @deadeye1982a 4 года назад +146

    Cool tutorial. [1:39:20] you can use math.hypot instead of pow and sqrt.
    distance = math.hypot(enemyX - bulletX, enemyY - bulletY)
    Since Python 3.7 or 3.8 math.hypot can take more than two elements, so you can use it also to calculate distances in 3 or more dimensions.

    • @stefanj.932
      @stefanj.932 4 года назад +3

      Thank you!this helped me a lot :)

    • @Tucking_Fypos
      @Tucking_Fypos 4 года назад +1

      +1 for this, thanks mate

    • @danielalbright8398
      @danielalbright8398 4 года назад

      when i tried this, I got the error the TypeError: 'int' object is not subscriptable
      when using sqrt and pow, it worked fine

    • @leob8967
      @leob8967 4 года назад

      Does it calculate distance without doing anything else?

    • @aamodvarma2061
      @aamodvarma2061 4 года назад +1

      @@leob8967 yea it basically means hypotenuse, which is the distance in this case

  • @pakdestalin9685
    @pakdestalin9685 4 года назад +39

    I have an exam tomorrow and i watch this video till the end.
    *Yep thats worth it*

    • @serenabrowne4517
      @serenabrowne4517 3 года назад +2

      i have two weeks to make a game and I have to learn this, plus I have school for one more week.
      *ill be fine right?

    • @chickmagnet2067
      @chickmagnet2067 3 года назад

      I watched it on exam day. Love freecode camp

  • @kiranprasad987
    @kiranprasad987 2 года назад +1

    this is the best tutorial, no one teached properly like him for pygame.

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

    This is really awesome video. I'm very new with Python and it's hard to understand the process even the functions,... It's really great that you explained every single details of what you are doing. Please make more videos like this. I'm so happy to find this video

  • @krishgarg5665
    @krishgarg5665 4 года назад +3

    waaao! who says nothing is perfect!! thanks alot, it really helped me alot!

  • @mach1ne298
    @mach1ne298 4 года назад +3

    GAME OVER its a good way to end this course
    You are amazing MATE!!! Thanks

  • @bigsmoke6414
    @bigsmoke6414 2 года назад +1

    only around 20minutes in, but already the best programming tutorial for this that i have ever seen

  • @paulthomas1052
    @paulthomas1052 3 года назад

    Really enjoyed this tutorial - excellent work !!

  • @Mark-po2xb
    @Mark-po2xb 3 года назад +501

    You know that a tutorials going to be good when u have an indian talking :)

    • @CE--AhmedShabahat
      @CE--AhmedShabahat 3 года назад +27

      Ya absolutely Indian English is easy to understand for both indians as well as others

    • @Avighna
      @Avighna 3 года назад +14

      @TerrorWest lol ur being self racist. I think it's good

    • @m-gendy1512
      @m-gendy1512 3 года назад +6

      @TerrorWest yeah, I agree with you it's really annoying special when his accent has so much effect on the English characters so, I really have so much respect for Indians who can overcome his accent those are only Indians who can really impress me

    • @Avighna
      @Avighna 3 года назад +5

      @@m-gendy1512 wow ur as bad as that white police

    • @37.vigneshgopal3
      @37.vigneshgopal3 3 года назад +5

      @@Avighna Actually like it is annoying because for coding we Indians have only watched tutorials by foreigners and we get addicted to that sound. Plus Indian accent if heard on devices is very annoying to be it anyone. NotRude

  • @akasolution7699
    @akasolution7699 3 года назад +14

    UR THEEE BEST, im only 12 and was eager to learn python all of the other tutorials weren't specifying png file size so everything was going hay wire, you explain everything properly 10/10 would recommend!!

    • @tuis6276
      @tuis6276 3 года назад

      can you send the codes please :(

    • @ConnerCobe
      @ConnerCobe 3 года назад +2

      holy moly you are young learning coding! glad to see the younger demographic enjoys coding as much as i am!

    • @akasolution7699
      @akasolution7699 3 года назад +1

      @@tuis6276 i changed from pycharm to sublime text and all the files are lost, im sorry

    • @hamzawarsi1834
      @hamzawarsi1834 3 года назад +1

      @@ConnerCobe well they don't say coding is for all ages for nothing

    • @jeriarios6718
      @jeriarios6718 3 года назад +1

      I'm 14 :'(

  • @larsmasonsmith8370
    @larsmasonsmith8370 3 года назад

    that was an awesome tutorial i was following along a different oen and this one is so much better good job.

  • @vanshshah6418
    @vanshshah6418 3 года назад

    Thanks man , only video i needed for a long time

  • @letslearn6352
    @letslearn6352 3 года назад +5

    1:03:00
    it can be done in vs code, using alt+click trick.

  • @prajwalpkulkarni
    @prajwalpkulkarni 4 года назад +35

    this has to be the best beginner game dev course ever.
    concise, simple and easy to understand.
    would recommend it to others 10/10

    • @monochromatic9601
      @monochromatic9601 4 года назад

      yeah these are the same guys who actually helped me get started with coding

  • @tubakhalid5222
    @tubakhalid5222 3 года назад

    Thank you so much for such clear explanation ... You guys are blessing !

  • @prasoonrajpoot4077
    @prasoonrajpoot4077 3 года назад

    he ffucking explained the pygame library so easily that i cant define, i was stuck on understanding how to use them, these 2 hours are the most productive of my life.......more power to u bro, please give us an option to applaud your work through money...

  • @ProgrammingwithPeter
    @ProgrammingwithPeter 4 года назад +4

    Cool intro to python game development 💪

  • @denismoura5374
    @denismoura5374 4 года назад +3

    Great tutorial!
    PyGame is awesome. I'm just beginning to learn it.
    By the way, I LOL'd at 1:23:27.

  • @ivanlai4611
    @ivanlai4611 3 года назад +1

    Fantastic tutorial! Very nicely done!!

  • @sid1750
    @sid1750 2 года назад

    Perfect tutorial to learn how games are developed... This helped me a lot.

  • @anonymouscode1616
    @anonymouscode1616 3 года назад +6

    How many guys are noticed this amazing guys voice was changed in the class of adding audio to game

  • @leweed3049
    @leweed3049 3 года назад +6

    i needed 3 days to finish, but now i am way smarter and understood it

  • @user-qk7up8hp2t
    @user-qk7up8hp2t 2 года назад

    Excellent tutorial, best game tutorial I've seen. Thank you.

  • @laquan017
    @laquan017 2 года назад

    This was amazing! I feel like I learned a lot - THANKS

  • @mderra8012
    @mderra8012 3 года назад +22

    2:00:25
    - "And when we shoot someone"
    *Misses drasticaly

  • @shiveshkushwaha204
    @shiveshkushwaha204 3 года назад +8

    Thank you so much Sir..... After 5 days i have created this game with the help of your video.....

    • @planet.ai1
      @planet.ai1 3 года назад +1

      Which pubg

    • @urara4477
      @urara4477 3 года назад +2

      👈@@planet.ai1 nahi bro bro mera channel dekho

  • @cakiilunicorn7929
    @cakiilunicorn7929 2 года назад

    Man, this helps me a lot. I srsly struck gold with yt recommendation huh.
    Lots kudos!

  • @sorana8263
    @sorana8263 2 года назад

    Thank you for these amazing tutorials! You're awesome!

  • @lagrottepixels4536
    @lagrottepixels4536 4 года назад +3

    thank you for your perfect work, thanks to you I am learning a lot from a french friend

  • @sagarikaray3936
    @sagarikaray3936 4 года назад +72

    I'm a 12 year old and it's really very easy learning Pygame with you . Keep it up!!👍👍

  • @kahhuanyap6313
    @kahhuanyap6313 3 года назад +2

    it's very clear dude! Thanks so much!

  • @HustlingCyxer
    @HustlingCyxer 2 года назад +1

    Salute , you sir 🙏
    you made a two hour video and subtitles too
    It surely took you so much time

  • @aumacharya3869
    @aumacharya3869 3 года назад +3

    could somebody please tell me how did he get to use that image in the video I cannot figure it out when I download the image I try to put it in my code but it gives a error can you help me?

  • @boikimphore7845
    @boikimphore7845 3 года назад +14

    To center player along x-axis can also be auto-calculated instead of hardcoding playerX = 370
    playerX = screen.get_width() / 2

    • @mbrown1253
      @mbrown1253 3 года назад +2

      technically this would place the left edge of playerImg at center. to align the center of playerImg at the center of the screen you'd need:
      playerX = screen.get_width() / 2 - playerImg.get_width() / 2

  • @RedSW
    @RedSW 2 года назад

    Thanks so much! Really clear and easy to understand.

  • @thefounderofbussines645
    @thefounderofbussines645 2 года назад

    i created my first ever game thank you so much bro
    the tutorial is not even bored .well understanding .no error

  • @SkyFly19853
    @SkyFly19853 4 года назад +3

    Finally, someone has made a tutorial about Pygame!
    I hope they also make a video about Python GL and 3d games in Python.
    Even how to make a doom 1 like in Python!

    • @oltb3415
      @oltb3415 4 года назад +1

      If you want to make 3d games I recommended panda3d

    • @SkyFly19853
      @SkyFly19853 4 года назад

      @@oltb3415 yes, I know about Panda3d, but I also like to know more about Open GL and Python scripting in Blender 3d.
      I hope they make more tutorials about it.

    • @buildwithpython
      @buildwithpython 4 года назад +2

      Thanks! I haven't yet. But I do love some Pygame!

    • @SkyFly19853
      @SkyFly19853 4 года назад +1

      @@buildwithpython You are welcome! I understand. Me too!

    • @SkyFly19853
      @SkyFly19853 4 года назад

      @A Google User But if you use Cython and other combinations, you can make an excellent game.
      There is even a 3d RPG game made by Python.
      You can watch it on RUclips.

  • @ashishj4672
    @ashishj4672 4 года назад +7

    Started and completed the whole course in 4 hrs no skips and not discontinuty... Just because of the way this guy explains Stuff..

  • @yasmeengrewal7369
    @yasmeengrewal7369 3 года назад +2

    Great tutorial for beginners! Thank you

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

    Although I struggle for 3 days, but nice for beginners like me. Thank you so much! Hope u have the best when prodiving very detailed and free-acess education for people!