Making a C++ Game with No Experience!

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

КОМЕНТАРІ • 490

  • @barj
    @barj  Рік тому +12

    Become a member to access cool perks (Free unlimited muffins) ua-cam.com/channels/z3l6nyODzXLzTxIkARZ8rw.htmljoin

    • @IamPyu-v
      @IamPyu-v Рік тому

      your next step is C then Rust then Assembly :)

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

      @@IamPyu-vand then pure binary

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

      no

  • @garveziukas
    @garveziukas 3 роки тому +1132

    This is a very good example for non programmer people to make em understand and appreciate just how ridiculously complicated games we take for granted nowadays really are

    • @crazyksp8344
      @crazyksp8344 3 роки тому +33

      tbh even with game engines that make your life easier i still kinda find it hard to make games with unity (prob me not really having much experience in game making) but still, making big games isn't easy :)

    • @awwastor
      @awwastor 3 роки тому +38

      @@crazyksp8344 Yeah, and big AAA games are rarely made without modifying the game engine

    • @guitarplayer1495
      @guitarplayer1495 3 роки тому +36

      @@awwastor or they make they own engine

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

      @@guitarplayer1495 mostly Epic Games have Unreal , Rockstar have their own idk the name

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

      @@yashrawat9409 EA has Frostbite, CDPR as RedEngine. Most big companies have their own engine, but Unreal is the most prevalent one

  • @teasippingguy9316
    @teasippingguy9316 2 роки тому +85

    -reads title
    -clicks video
    -sees it's 5 minutes long
    somethings wrong I can feel it

  • @serenestateofbeing1062
    @serenestateofbeing1062 3 роки тому +743

    my volume was all the way up because the videos sound is so low, then i hear PEW PEW PEW PEW

  • @logantv6841
    @logantv6841 3 роки тому +968

    "making a game with no experience" proceeds to show us how to code google.

    • @madmemer3470
      @madmemer3470 3 роки тому +65

      with c++

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

      @@ianboyer2224 is the second one gdscript? I know the first one is one of the C languages(that could be any of them lmao), but i'm not sure what the second one is other than GDscript. Is it python?

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

      @@ianboyer2224 ayyy i guessed right!

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

      @@ianboyer2224 yes, i only learned java but already worked with python for backend, c# and c++ in game dev, dart for multiplatform application. Language is almost never an issue. I only had to take a look at pointers for c++ and then i was good to go

    • @majestic-domination
      @majestic-domination 3 роки тому +6

      @@kuchukboromdebbarma2117 Ayo, a quick look at pointers isn't enough if you work with the heap. That's how bugs are created

  • @Armetron
    @Armetron 3 роки тому +95

    I'm glad you made this video, I am currently going through no scratch press' c++ crash course book to refresh my c++ knowledge that I got at university. So seeing games being developed directly in c++ is a welcome change

  • @Skeffles
    @Skeffles 3 роки тому +155

    This is fantastic work! Learning C++ can be very frustrating but when you've got a cool project like this it's easy to focus.
    4:36 looks awesome. I feel there is a game in something like this.

  • @nilsdrees9228
    @nilsdrees9228 3 роки тому +35

    Just reading the title I thought this was some kind of suicide trip but it actually is amazing! Keep it up!!

  • @NamidaSai
    @NamidaSai 3 роки тому +24

    This is great! Almost wished you went more in-depth, but definitely made me want to try my hand at doing a game without Unity! Thanks for the motivation 👌

  • @liviuq
    @liviuq 3 роки тому +21

    That's really dope! looking forward to replicate the same one by myself!

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

      Keep me posted!

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

    Sounds about right 👍 Anything you learned, or should have learned in highschool and college will help you in your c++ journey.

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

    Awesome video! My first dabbling into game dev was making an Asteroids clone using LibGDX, so this hit me right in the nostalgia :)

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

    I made the same game, though I had alot of problems regarding making the astroids spawn in random coordinate... Yet at last it was great, even my siblings liked it :3

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

      Hey bro, can I add you, can you teach me how to make the game? 👀🙏

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

    4:33 Ahhh yes the friend to all glitch masters. *SPAGHETTI CODE!*

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

    How does this channel only have 1.75k subs, doesn"t make sense the video quality is so good

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

      Thanks Peter, means a lot :)

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

      because of this video title

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

      @@rodolforp4200 Because channel has too few videos and rarely upload

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

    Such a quality video, you deserve more subs

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

      I appreciate that!

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

    C++ Takes months to learns and years to master.

  • @Orincaby
    @Orincaby 3 роки тому +15

    me 1 week with C++: hello world
    him 1 week with C++: I CODED THE ENTIRE MILKY WAY GALAXY AND THIS HOW!

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

      It's called ctrl c + ctrl v.

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

    I just started learning c++, I'll if I can copy this from scratch once I'm confident enough

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

      Keep me updated :0

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

    sfml makes this incredibly easy lmao

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

      trying to implement openGL or vulkan when you have no idea what you're doing also isn't the easiest thing in the world lmao

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

      Damn. Who hurt you piggy

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

      @@barj glfw :(

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

    sfml also has vector classes but its great for all sorts of things... multiple camera systems and all its modules are explained on their website... i loved it to program some c++

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

    Discord be like : Playing Visual Studio Code
    pog vid btw

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

    Reminds me of the old joke, "I took a speed reading course, and I was able to read 'War and Peace' in 20 minutes. It's about Russia."

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

      I don't get it, can someone explain for me?

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

    How does this only have 70 views?

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

    This is a very good example! Thanks much

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

    such a good video my man, i started sfml a long time ago and i needed to stop doing my game because i needed to study, this inspired me so mcuh!!!!!!

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

      Thanks man, that means a lot :)

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

      @@barj your videos are so amazing, I love the way you explain stuff like delta time and everything, keep it up!!

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

    Recently did something very similar, made a neat ascii physics animation from c++ without ever using it. Big jump from knowing just Python and Java lol

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

      For sure. The game isn't too hard to make, it's the jump from a managed language that gets you :)

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

    I took "with no experience" and assumed you meant not knowing anything. I was going to change careers if that were the case and you were successful.

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

    And I'm over here still trying to center this damn div

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

    You can thank dani because I clicked on your videos after recognizing your profile picture from his muck video (btw great name lol)

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

      Let’s gooo

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

    BRO! You have done a job though. I liked it. You have got yourself a new new subscriber man.

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

      Thank you :)

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

    aren't you the guy who told dani to name his game muck lmfao, great tutorial btw

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

    Very good content, not too long but still holds everything :D

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

    what is that awsome sprite editor

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

    This is insane! Good job.

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

    How do you make your visual studio look so nice? o_O

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

    I'm trying to get into a game dev program for uni and there's an intake assignment that asks to do exactly that: make a small game using C++ with SFML and no game engine. If this was the hardest challenge you've done yet, I feel like this is gonna be fun-

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

      Yea, it feels weird hearing the biggest struggle was physics and the display as I’ve never touched engines like unity and had to alway do all this usually

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

      @@the8bittoaster103 The only hard part about physics that would typically be encountered are collisions (and SFML actually does have a bit of a rudimentary 2D engine, it makes loading sprites easy and give things like bounding boxes to make 2D collisions easy... as long as you don't need pixel level collisions where transparent pixels don't collide, or something like that). Collisions aren't really too difficult until you need to run them between many objects... then you may need to use an octree (or quadtree in 2D).
      The physics is learn once, apply everywhere, I like it. Game engines tend to be either 1) super limiting or 2) require a bunch of learning you will never apply anywhere except that engine (and that might be obsolete on their next major update as well). Special knowledge about the sequence of GUI boxes to check to some tile generation thing... really seems like memorizing some sort of ritual.

  • @dave24-73
    @dave24-73 Місяць тому

    Javidx9 has a nice video on the same thing. Not to takeaway from yours but he covers the maths really well.

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

    Gamemaker user : oh that game

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

    Bloody great man thank you!

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

    yeah right. "no experience" good one

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

    "With no experience" oh yeah sure sure okay.

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

    This is wonderful, thanks for doing this

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

    respect you man

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

    cool video i subbed

  • @ヽノ-g3s
    @ヽノ-g3s 3 роки тому +2

    Exelent vídeo new subs

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

      Welcome aboard!

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

    wait wait wait wait wait ... while this is SUPER impressive and like really, I mean that! You did great here and showed me stuff I need to learn as I'm just starting out with basics on C++ and i know a bit of VBA. It looks like you missed a couple things, does you ship blow up? can it occupy the same space as an asteroid? also looks like your bullets keep going after they hit an asteroid. Well done, like I said. Those things would kind of annoy me. Maybe that's something I need to learn, that close enough is good enough and if it works dont muck with it. is there a way to get this code so that when i'm ready i can play with it because i feel like you quickly solved some tiring physics issues.

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

    Great vid, very well executed

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

    Awesome video

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

    so amazing video bro

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

    Super Cool!

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

    Amazing! I'm just learning c++ :)

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

    4:40 accidentally created a thruster haha

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

    Good work! If only we could add scatter functionality to the destroyed asteroids which inturn could act as bullets causing a domino...

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

      I would have loved to do this, I was a little fed up toward the end of this project so I didn't polish it quite up right. I hope you enjoyed regardless :)

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

    Really nice job ! Could you please tell me which is the font that you're using in this video ?

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

    good shit bro intresting to watch as well

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

    wow thats insane i really gotta start learning cpp

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

    Thanks For The Physics Source Code xD

  • @HiHi-ek1dd
    @HiHi-ek1dd 3 роки тому

    8k subs now still underrated

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

    That's not a lot of trigonometry lol, cool video anyway

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

    Nobody
    Pac man: wakka wakka

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

    "This time since last frame was really easy to implement."
    Let's say this louder to Bethesda can hear it lol
    For those of you who don't know, some actions in Bethesda's game engine are linked to frame rate, so running the game at a frame rate higher than 60fps makes actions such as lock picking in Fall Out 4 run much, much faster to the point that they aren't playable. This actually cause major issues (as if there weren't enough already on release) with Fall Out 76. Players with higher end PCs were able to perform actions faster than those tied to 60 fps. I think it was as bad as them even being able to move faster. Being a multiplayer game, this was not a good thing to say the least. I think they fixed it eventually, but I still find it hilarious.

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

      Not tying actions to frame rate is bad enough but a multiplayer game... yeah that’s not the best lmao. It frustrates me seeing as how easy of a fix it is.

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

    this guy can make a game and i cant even properly understand vector in 1 day ...

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

      It's just an entity with n numerical values, with n being the dimension of the vector. It's just like an array but it's treated differently from an array because of the different operations you can do with it like the dot product, cross product, etc. I wrote this comment for beginners who may not know what a vector is.

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

    You should contact these guys called STORROR. They are looking for a game developer with a background in C++ .

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

      Thanks :)

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

    the title is me using unity in a nutshell

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

    what is the destruction game you play i saw a clip at 0:30

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

    This makes me want to pick up C++

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

    So cool!

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

    I'm curious as to how your VS looks so clean and simple. How'd you do that?

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

    how did you learn C++ in a week? and from where and how

    • @majestic-domination
      @majestic-domination 3 роки тому +1

      If you already know a programming language, then you already know 90% of programming languages. Only thing hard with C and C++ is understanding and mastering memory management.

  • @陳禹安-o7o
    @陳禹安-o7o 2 роки тому

    Wondering the name of the theme you are using in VS code. Thanks!

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

    How did you apply that illustrator work in c++?

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

    this is really cool

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

      Thank you :)

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

    wow man
    thats so sick!

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

    You made a triangle in illustrator instead of rendering it in code? Noob
    Jk very interesting video, I’m learning C++ myself and this is inspiring

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

    What's the background music? It's super chill.

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

    Giggity giggity goo

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

    Awesome, but can I ask, why didn't you use hpp files instead of h, is there a reason?

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

    what are some good sources for code libraries? what are some examples of other libraries other than physics?

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

    You did a great job! Can you please share the sources that helped you the most to learn C++?

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

      There are millions of tutorials on YT

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

      I mainly just used the documentation for SFML as well as some of my C# knowledge to make this game. It was not the neatest code in the world if I'm honest. I'd say TheCherno C++ series is probably one of the best for you to learn :)

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

      @@barj true the cherno is the best

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

      @@barj Thank you

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

      ​@@computerprogrammer7942 I know there are lots of materials, I just curious about which sources he just used.

  • @Ale-kr5uu
    @Ale-kr5uu 3 роки тому

    Which theme are u using for ur vscode??

  • @ks.doherty
    @ks.doherty 3 роки тому

    bro this is so similar to the gamemaker studio 2 space rocks tutorial

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

    Noice

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

    I'm pretty sure asteroids doesn't use an image instead generates some vectors so each asteroid looks different

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

    Why do you punish yourself, I remember making a vector Space Shooter in Java 19 years ago for College and that was a massive headache, anyway great job.

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

    Nice one. Now without SFML

  • @alebud1403
    @alebud1403 23 дні тому

    3:45 how make games in visual studio code?

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

    wow

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

    when mushy update?

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

    pew pew pew

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

    i would appreciate if you make a tutorial for this sfml project. just the bubble sort visualization is fine, but witht the asteroids if yo can.

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

    how did u make ur mac look like windows?

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

    Poggers

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

    may I control C and control V your hard work!!! I'm trying out coding, and I don't understand like everyone else when they see code lmao

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

    This video really exploded! What was your previous Cpp experience? Like and suscribed Barji!

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

      Non-existent 😳

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

      @@barj Ooh so it was true! Wow!!

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

      @@barj It surprised me! Of course, you had C# experience, but what you did is amazing!!

  • @AJGAMING-wh5kw
    @AJGAMING-wh5kw 2 роки тому

    Sfml I am not good with that can u do with sorcers

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

    what vscode theme is that

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

    Do you recommend c++ or unity to make games?

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

    Hey, I got a quick question on how you managed to do the delta time. I still cant seem to find out....

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

    what are those cursors?