C++ Space Invaders Tutorial with raylib - Beginner Tutorial (OOP)

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

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

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

    I hope you took away lots from this video. Let me know below!
    PS: I created a course named "Object Oriented Programming Made Easy"! Sign up at bit.ly/3NaMfg4. Enroll now.

  • @chriswinslow
    @chriswinslow 11 месяцев назад +23

    Your raylib series’s are probably the very best I’ve seen when it comes to teaching OOP. Video games are the best way to teach OOP IMO and the way you code is very clean and elegant. There’s so much More I could say in your praise but no likes to read long comments. Liked + Subscribed from me.

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

      Your comment made my day. Thank you very much for your nice words. I appreciate it.

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

    Best Teacher Ever !!!! Never Skips a part , explains everything even the constexpr (such small details ) , not at all boring and time effective .
    I Hope many teacher can see this and learn from you.

  • @Yamu_168
    @Yamu_168 7 месяцев назад +11

    You are the most brilliant teacher I have ever seen on youtube!

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

    I've been following all your tutorials for cpp raylib starting from pong. Thank you for the clear explanation and guidance that even me without any prior knowledge about programming can proudly say I now know a little bit about cpp and raylib. It's still a long journey to game dev but I'm glad I stumbled on your channel to make the beginning easy and fun for me. Much love! Hoping to look forward to more cpp tutorials.

  • @itchitrigger8185
    @itchitrigger8185 5 месяцев назад +4

    You are a gem, hidden in the RUclips algorithm. More people need to see the tutorials!! Thank you very much !!!!!

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

      Absolutely winds me up. All the garbage videos are pushed to the top because they pull stupid faces and have dumb thumbnails. Actual good content videos like these are at the bottom of the pile. Let's not even told about the endless AI slop videos...

  • @StarFury2
    @StarFury2 11 месяцев назад +9

    The king of C++ tutorials is back!
    Time to put no-disturb sticker on my door and get to work! 😄

  • @frankstercodestuff
    @frankstercodestuff 11 месяцев назад +4

    YESSS THANK YOU. I have waited so long for this. The tutorial is great like always!

  • @n9mi_
    @n9mi_ 8 дней назад

    you deserve millions of subscribers. thanks for the tutorial anyway!

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

    man your lessons are amazing and brilliant, please don't stop

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

    This raylib tutorials are on another level , this is intermidiate coding but made simple and explained perfectly without making it long, i already coded along all your raylib games . i wish you had 10 more vidoes like this , i shared this with all my friends!

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

    These tutorials are incredibly useful and fun to follow, thank you so much for sharing your knowledge and taking the time to realize this

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

    excellent tutorial! i love how you built confidence in the student along the way!

  • @2000jago
    @2000jago 11 месяцев назад +9

    Awesome! C++ FTW!

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

    One minor update to the MoveAliens function in the Game.cpp class. I noticed that the spacing between some of the aliens would decrease as the aliens moved down to the point that they were almost touching by the time they reached the obstacles. I believe this is due to the alien that is currently being checked in the FOR loop. To fix this I added a second FOR loop to go back through each existing alien and added the alien.Update(aliensDirection) inside there instead of in the original FOR loop. This appears to work for me, so if anyone else has that issue you may want to try that.

  • @erichanson420
    @erichanson420 15 дней назад

    Really neat end result.

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

    THANKS YOU! This video and the others about OPP C++ programming with raylib are the best i've ever seen until now. they have helped my brother and I to understand how to manage the library and de OPP paradigm by an enjoying way.

  • @ianbrooke6342
    @ianbrooke6342 19 дней назад

    Excellent, I really enjoyed following this. Only small negative that I didn't see any code to check for and handle all the aliens being destroyed.

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

    thanks bro, plz keep doing more videos for raylib

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

    Fantastically fun and interesting tutorial. A great way to learn Object-oriented Programming IMHO. Also, one that can be easily configured and extended because it is so well structured. I think I'll try to add some animations though.

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

    Great tutorial, was easy to follow along and really understand what was happening! Thanks, subbed

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

    a lot of thanks! very usefull video! It will be great if in next videos will be shown how to create main menu in games. Great video!

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

    Great video, it would be nice if you also added the raygui library to a template and making a more "complete" game. Keep up the good work

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

    Thankyou so much for this please keep them coming!!!

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

      One thing is I think youre a little too quiet hard to hear you

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

      Yeah dude youre not loud enough im trying to follow along but your sound isnt loud enough :/

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

      Using closed captions thank god because this is the perfect tutorial for me its just I cant hear you lol

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

    Amazing! Subscribed and liked!

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

    GREAT VIDEO!!

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

    Awesome video it helped me make my first game, can you also make a video on creating a title and exit screen or give some tips on how to make it, thank you

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

    This is awesome. Which theme are you using in Visual Studio? Mine looks awful compared to yours 😃

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

    Thank you very much, your are the best ❤

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

    Awesome tutorial! I love it! But now I have a question, How or where do we get the executable we just build?

  • @aken4m7
    @aken4m7 2 дня назад

    Sir can you help me
    When i loaded the image of spaceship it says failed to load the image

  • @Light-f5g
    @Light-f5g 8 месяцев назад

    Thank for the video and would you make game in c using raylib because i am in learning c ?

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

    Great tuto. You have forgot to do: Unload(font);

  • @PuneetChauhan-dp8ym
    @PuneetChauhan-dp8ym 9 месяцев назад +1

    your code has a circular dependency which is giving error while creating vector Laser in spaceship.hpp

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

    Do you build a breakout game for the next video?

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

    Peak is comming

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

    just realizing that you did not implemented a win screen , or reset once all the aliens are dead.

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

      ive implemented it myself , and i manegerd to do it only becouse you teach so well, i made an you win screen , and press entter to reset messege when you lose.

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

    hope your chaner can develop more in futuer

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

    How do I compile this?

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

      This is a VS Code project. You open it with VS Code and press F5 on the keyboard.

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

      @@programmingwithnick PROBLEM SOLVED!! F5 doesn't work for me. I have to use the linux command line to compile. I have finally worked it out. I have to type " g++ -std=c++23 main.cpp spaceship.cpp -o spaceinvaders -lraylib " (to show spaceship first time) and add ../ to image address. PS I'm on Linux Mint. -std=c++23 not always neccessary.

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

    Finaly

  • @shashankchaturvedi-zv6nc
    @shashankchaturvedi-zv6nc 23 дня назад

    Hey,
    I'm a big fan of your channel and really enjoy your tutorials . I have an idea for a video tool that I think your viewers might find interesting.
    Would you be open to discussing it further and potentially creating a video about it on your channel? Let me know if you're interested! can you help me transform my idea into reality

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

    I can't tell if this man is Spanish or Greek

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

    'Promosm'

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

    Γοοmoening

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

    The video descritpion states: "... Space Invaders game using Python and Pygame." 🤭

  • @bobdillon1138
    @bobdillon1138 11 месяцев назад +4

    If you are going to go to all the trouble of doing a tutorial you might as well get the animation on the aliens correct.

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

    Greate :) Very interesting tutorial😊

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

    Thank you!! Please don't stop making such tutorials. They are so useful!!

  • @shashankchaturvedi-zv6nc
    @shashankchaturvedi-zv6nc 23 дня назад

    Hey,I'm a big fan of your channel and really enjoy your tutorials . I have an idea for a video tool that I think your viewers might find interesting.
    Would you be open to discussing it further and potentially creating a video about it on your channel? Let me know if you're interested! can you help me transform my idea into reality

    • @programmingwithnick
      @programmingwithnick  20 дней назад

      Tell me what is it about?

    • @shashankchaturvedi-zv6nc
      @shashankchaturvedi-zv6nc 20 дней назад

      @programmingwithnick do you have discord or any other platform to discuss , I will provide all the data and files for you to asses ,it's about a vedio audio noise reduction microsaas