Python Space Invaders Game Tutorial with Pygame - Beginner Tutorial (OOP)

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

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

  • @programmingwithnick
    @programmingwithnick  10 месяцев назад +3

    I hope you took away lots from this video. Let me know below!
    PS: I'm creating an OOP course! Sign up at programmingwithnick.com/course for early access and a 50% launch discount.

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

    Great lesson, you are a very gifted instructor!

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

    Its funny how overexcited youre are but also very helpful you explain everything from ground up. Good stuff!

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

    Amazing video, being able to program a game like this is a childhood dream come true to me

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

    Great work Nick, brings back memories when the game came out on an arcade machine in the local pub.

  • @Flave44
    @Flave44 8 месяцев назад +2

    Thank you bro! Very good tutorial!
    I used this to make a school project!

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

    Fantastic coding exercise - I learnt lots of new tricks. Such a great game too ! Thanks.

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

    Thanks for your tutorials, Nick. You rock and with your teaching method, I have retaken my career in game development. You rock :D

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

    This is amazing tutorial, congratulations bro 👌👌

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

    Great video thank you for your work

  • @StarFury2
    @StarFury2 10 месяцев назад

    Welcome back Nick! Will there be a C++ version of this?

  • @foofoo17
    @foofoo17 10 месяцев назад

    Hi Nick, thanks again for another wonderful tutorial :)
    I think you forgot to add in the offset for the laser sprites and the right-side spawn of the mystery space ship seems to be off.

    • @programmingwithnick
      @programmingwithnick  10 месяцев назад

      Thanks for the feedback. For the laser sprites, we don't need to add an offset because they spawn at the center of the spaceship, or the alien sprite, so the offset is already there. As for the mystery ship, I will check it again, you may be right. Thanks again!

    • @foofoo17
      @foofoo17 10 месяцев назад

      @@programmingwithnick I meant the laser sprite when it should be destroyed once it reaches the edge of the frame we have drawn

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

      Good catch! You are right! We need to destroy it a bit earlier now that we have the frame. Thanks for letting me know.

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

      The right side spawn of the mystery ship you need to minus the offset not add it "x = random.choice([self.offset/2, self.screen_width - self.offset - self.image.get_width()])"

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

    thanks bro !

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

    Great !! really well explained (oop+flow) to follow
    I'm using your example to update a breakout revision !!
    Have you another tutorial with spritesheet on a simple platform game ?
    Thanx for your time :)

  • @minhbaby3243
    @minhbaby3243 10 месяцев назад

    Bạn đã giúp tôi gỡ rối rất nhiều thứ, cảm ơn nha 🤗, video rất tuyệt, hãy ra nhiều hơn nhé.

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

    Raylib version of this would be great

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

    loved it thanks--but did have a problem --with the screen size not fitting my laptop and if I want to increase levels and if it is in there--how do I start the next level after clearing the first one. making the next level harder than the last. free ship would be nice after clearing a level or after reaching a certain score.

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

    At 40:44 it would be nice if you explained _why_ we can now delete half of the code we've written in the last half hour. Because I have no idea 🙄

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

    How can I make this go on forever until I loose all 3 lives?

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

    Day 1:
    1:00:00

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

    Is pygame more featureful than rsylib python bindings

    • @programmingwithnick
      @programmingwithnick  10 месяцев назад

      Yes, pygame has many more features which make game development faster.

    • @happygofishing
      @happygofishing 10 месяцев назад

      thanks, I tried pygame in 2020 when I was just learning how to program. Now I'm using C and raylib but I wondered if I returned to python whether I should use raylib bindings or pygame.@@programmingwithnick

    • @StarFury2
      @StarFury2 10 месяцев назад

      When I left pygame few years ago (switched to pyglet), it was hopelessly slow wrapper for SDL with no hardware or graphics API support. Since then it seems it's development has accelerated significantly.

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

    Hello how can I add a python file ?

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

    there's no download scammer.

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

      Can you see the link to the github repository? The code is there, free to download for everyone.