Making a C++ Game with No Experience!

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 493

  • @barj
    @barj  ปีที่แล้ว +13

    Become a member to access cool perks (Free unlimited muffins) th-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 5 หลายเดือนก่อน

      no

  • @garveziukas
    @garveziukas 3 ปีที่แล้ว +1140

    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

  • @serenestateofbeing1062
    @serenestateofbeing1062 3 ปีที่แล้ว +751

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

  • @logantv6841
    @logantv6841 3 ปีที่แล้ว +973

    "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

  • @teasippingguy9316
    @teasippingguy9316 3 ปีที่แล้ว +88

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

  • @PolyMars
    @PolyMars 4 ปีที่แล้ว +1146

    welcome to the dark side

    • @Handidev
      @Handidev 4 ปีที่แล้ว +3

      Your video on Discord api game inspired me to make on myself :D love it!
      th-cam.com/video/z5YY7Tdlg4Y/w-d-xo.html

    • @CrazyGreekGR
      @CrazyGreekGR 4 ปีที่แล้ว +24

      You are the reason I started learning c++ so I can make a game for my psp OwO

    • @sode07
      @sode07 3 ปีที่แล้ว +5

      You inspired me to search how to make a c+++ game (yes that’s a typo) and then I discovered you here in the comments

    • @lightdropp
      @lightdropp 3 ปีที่แล้ว +6

      @@sode07 why didnt you just go back and change c+++ to c++ if you knew that was a typo? It wouldve been faster than writing (yep thats a typo).

    • @garycollins1157
      @garycollins1157 3 ปีที่แล้ว

      You can also pretty much make a game with javascript.

  • @barj
    @barj  3 ปีที่แล้ว +361

    100,000 Views! Gonna release some very similar videos soon so be sure to leave a sub if you enjoyed :)

    • @r0use277
      @r0use277 3 ปีที่แล้ว +7

      Can i see the source code of the game somewhere?

    • @drkmgoswami3042
      @drkmgoswami3042 3 ปีที่แล้ว

      Voice is slow or it should pitch like polymars

    • @HiHi-ek1dd
      @HiHi-ek1dd 3 ปีที่แล้ว +1

      Remember me when you get big

    • @HiHi-ek1dd
      @HiHi-ek1dd 3 ปีที่แล้ว +1

      Deal?

    • @Bat_pann
      @Bat_pann 3 ปีที่แล้ว

      @@HiHi-ek1dd I can Remember You XD

  • @Armetron
    @Armetron 4 ปีที่แล้ว +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 4 ปีที่แล้ว +154

    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.

    • @ssadfadsfad
      @ssadfadsfad ปีที่แล้ว +1

      It's called line rider

  • @BingtheLizard
    @BingtheLizard 3 ปีที่แล้ว +51

    Tbh I'd say that every year since video games were invented has been a golden year.
    We live in a time of wonder where we can give imagined people, creatures and places manifestation in sight and sound, and then immerse ourselves in them. Nobody before this era has had this degree of tangible access of select senses into dreamed worlds. This is modern magic. What a time to be alive.

    • @schlizzer2018
      @schlizzer2018 2 ปีที่แล้ว +2

      No, not really. Nowerdays big companies are just trying to make a lot of money with microtranactions, loot boxes an so many more. For me which played videogames since 1986, this feels just wrong. Don't get me wrong, i really love some newer games like Minecraft or Undertale. But most of all them are just developed to make you buy more and more (take Fifa for example) i and most other people do not want to get crushed out the last bit of money for only playing videogames. We just wanna have fun. Thats all. Not destroying a whole generation just for egoistic companies.
      If you don't get what i am trying to say, just play a week only old games, like 1964-2000 and nothing else. You quikly realise, how much moneyless fun this actually was. (I do not talk about arcades, they are the same shit)

    • @BingtheLizard
      @BingtheLizard 2 ปีที่แล้ว +4

      @@schlizzer2018 There's wonderful gems which so many solo or small-team indie creators produce every year though; we just have to look a bit harder for them, that's all. The great little free/cheap ones with real play value are there, just often buried by the dirt that is AAA tripping over its own feet.

    • @schlizzer2018
      @schlizzer2018 2 ปีที่แล้ว +1

      @@BingtheLizard yeah, thats actually so. But again, its not the whole gaming industry. Btw, undertale is a super indie game :)

  • @codergopher8270
    @codergopher8270 4 ปีที่แล้ว +185

    EpicC++Gang now has a foothold in Britain

    • @invalid5777
      @invalid5777 3 ปีที่แล้ว +1

      heyy

    • @valsistem
      @valsistem 3 ปีที่แล้ว +3

      It should've been EPIC++ Gang thought

    • @quickscopesheep5994
      @quickscopesheep5994 3 ปีที่แล้ว

      he used sfml instead of sdl. he betrayed us

  • @cameronward9939
    @cameronward9939 4 ปีที่แล้ว +204

    I liked the bit where he made the asteroids game!

    • @devtimm
      @devtimm 3 ปีที่แล้ว +2

      Wow that was realy cool

    • @nuggetchicken3873
      @nuggetchicken3873 3 ปีที่แล้ว

      Yeah I think that was the bes5 part

    • @zacky_code
      @zacky_code 3 ปีที่แล้ว

      Really dude? I liked the part when he showed the code!

    • @pranavi1949
      @pranavi1949 3 ปีที่แล้ว +2

      @@devtimm wow that was really cool

    • @F4biano
      @F4biano 3 ปีที่แล้ว +1

      @@pranavi1949 wow that was really cool

  • @smillwiff
    @smillwiff 3 ปีที่แล้ว +15

    really love the editing in this, great job!

    • @barj
      @barj  3 ปีที่แล้ว +1

      Cheers 😀

  • @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!!

  • @liviuq
    @liviuq 3 ปีที่แล้ว +21

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

    • @barj
      @barj  3 ปีที่แล้ว +2

      Keep me posted!

  • @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 👌

  • @dawgeh451
    @dawgeh451 4 ปีที่แล้ว +8

    Such a quality video, you deserve more subs

    • @barj
      @barj  3 ปีที่แล้ว +1

      I appreciate that!

  • @bondjovi4595
    @bondjovi4595 ปีที่แล้ว +1

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

  • @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 :)

    • @jw200
      @jw200 3 ปีที่แล้ว

      @Rodolfo RP Because channel has too few videos and rarely upload

  • @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? 👀🙏

  • @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 :)

  • @deadlyamazon3649
    @deadlyamazon3649 3 ปีที่แล้ว +6

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

  • @mccrushers1983
    @mccrushers1983 3 ปีที่แล้ว +3

    This is dopeeee! Would love it if you’d make longer videos, I’d watch them all for hours

    • @barj
      @barj  3 ปีที่แล้ว +1

      Working on a video about OpenGL that I hope will be around 20 minutes so buckle up :)

  • @guiAI
    @guiAI 3 ปีที่แล้ว +2

    i kinda understood delta time, now it was 100% clear, thank you sir

    • @barj
      @barj  3 ปีที่แล้ว +1

      No problem big guy. I explained it again in my python jam video but better if you want the reassurance :)

    • @guiAI
      @guiAI 3 ปีที่แล้ว

      @@barj Nice! A quick response, i will definitely check that video out!

  • @RohithCIS
    @RohithCIS 3 ปีที่แล้ว +31

    Wow, SFML looks like a Codingame Challenge!

  • @of2061
    @of2061 ปีที่แล้ว

    Thank you, I was stuck, trying to figure out how to apply c++ and this video helped.

  • @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 3 ปีที่แล้ว

      It's called ctrl c + ctrl v.

  • @flyguyhern5369
    @flyguyhern5369 2 ปีที่แล้ว +1

    what is that awsome sprite editor

  • @davidm2.johnston684
    @davidm2.johnston684 2 ปีที่แล้ว +1

    Very nice! This is encouraging, I want to try something like this too :)

  • @seanisnoob2885
    @seanisnoob2885 4 ปีที่แล้ว +6

    Discord be like : Playing Visual Studio Code
    pog vid btw

  • @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 4 ปีที่แล้ว

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

    • @barj
      @barj  3 ปีที่แล้ว

      Thank you :)

  • @techatharva
    @techatharva 2 ปีที่แล้ว

    Congrats or 100k subs! Yesterday when I checked your channel, it was 99k.

  • @FitnessChaos
    @FitnessChaos 3 ปีที่แล้ว

    Dude nice video. I like that you did everything by scratch

  • @maskhara999
    @maskhara999 3 ปีที่แล้ว +3

    you have hit the algorithm barji

  • @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 3 ปีที่แล้ว

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

  • @ryafs
    @ryafs 3 ปีที่แล้ว +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!!

  • @joshseales9814
    @joshseales9814 2 ปีที่แล้ว +1

    This makes me wish my 3 years of IT and computer science would pay off already

  • @sonicspin812
    @sonicspin812 3 ปีที่แล้ว +1

    Wow amazing that you made it making a game without game engine is so much harder than making a game with a game engine

  • @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 :(

  • @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

  • @shashankkr1008
    @shashankkr1008 3 ปีที่แล้ว +2

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

  • @Cameroni5005
    @Cameroni5005 3 ปีที่แล้ว +1

    0:24 I thought you did not swear?

    • @flp508
      @flp508 2 หลายเดือนก่อน

      he said ship not shit 😅

  • @hydro_gaming1319
    @hydro_gaming1319 4 ปีที่แล้ว +7

    How does this only have 70 views?

  • @mohdaman5928
    @mohdaman5928 3 ปีที่แล้ว +1

    bro i am also learning to code and make games thanks for motivation man

    • @barj
      @barj  3 ปีที่แล้ว +2

      No problem man

  • @Zero-4793
    @Zero-4793 2 ปีที่แล้ว

    you talking about how the physics was the hardest part when its just basic motion. i figured learning the new syntax would be the hard part.

  • @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++

  • @RACAPE
    @RACAPE 3 ปีที่แล้ว +1

    This is insane! Good job.

  • @Handidev
    @Handidev 4 ปีที่แล้ว +7

    Nice Job! Game MADE using C++
    btw how did you get to do that presentation at 2:08 ?

    • @barj
      @barj  4 ปีที่แล้ว +1

      Thanks! after effects.

  • @mateixgaming8504
    @mateixgaming8504 3 ปีที่แล้ว +8

    I want to start developing a game myself and I would really love if you could somehow make the source code public in order for me and probably many others to learn how to.

    • @barj
      @barj  3 ปีที่แล้ว +9

      One of my biggest regrets is losing the source code to this project. :/

  • @wackydawg1082
    @wackydawg1082 3 ปีที่แล้ว +1

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

  • @pixel690
    @pixel690 3 ปีที่แล้ว +1

    damn, and a great way to learn a programming language too
    i mean, if you are actually wanting to learn it properly you might wanna use some libraries but otherwise yea

  • @OutMagic
    @OutMagic 2 ปีที่แล้ว

    Bloody great man thank you!

  • @The2FunBro
    @The2FunBro 2 ปีที่แล้ว

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

  • @natalya_volochay
    @natalya_volochay ปีที่แล้ว

    Making games is interesting challenge for one person, indie developer. Even if it takes years

  • @ricardogranadeno8621
    @ricardogranadeno8621 3 ปีที่แล้ว

    This is wonderful, thanks for doing this

  • @keithprice1950
    @keithprice1950 2 ปีที่แล้ว

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

  • @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 :)

  • @scriptyshake
    @scriptyshake 3 ปีที่แล้ว

    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 3 ปีที่แล้ว +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 2 ปีที่แล้ว

      @@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.

  • @adryeeel
    @adryeeel 3 ปีที่แล้ว

    omg! so cool. thx for sharing with us.

    • @barj
      @barj  3 ปีที่แล้ว

      Thanks for watching :)

  • @blacksaibot6158
    @blacksaibot6158 3 ปีที่แล้ว

    "With no experience" oh yeah sure sure okay.

  • @benji_5095
    @benji_5095 3 ปีที่แล้ว +1

    It would have been nice to see more code

  • @fritzschnitzmueller3768
    @fritzschnitzmueller3768 3 ปีที่แล้ว

    this guy: sfml is low level
    OpenGl and Vulkan: Hold my beer

    • @barj
      @barj  3 ปีที่แล้ว

      OpenGL video soon

  • @loaimohammed5711
    @loaimohammed5711 3 ปีที่แล้ว +1

    What is the name of this vscode theme in this video pls??!!

  • @MewTube-o4l
    @MewTube-o4l 2 ปีที่แล้ว

    stack exchange works miracles

  • @simronthind6413
    @simronthind6413 3 ปีที่แล้ว

    Great vid, very well executed

  • @dave24-73
    @dave24-73 4 หลายเดือนก่อน

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

  • @AProbablyPostman
    @AProbablyPostman 2 ปีที่แล้ว +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.

  • @strangeanimations2518
    @strangeanimations2518 3 ปีที่แล้ว +1

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

  • @evod6430
    @evod6430 3 ปีที่แล้ว +2

    Gamemaker user : oh that game

  • @MrRico020
    @MrRico020 4 ปีที่แล้ว +2

    Dude is legend my gowd

  • @younggamerz328
    @younggamerz328 3 ปีที่แล้ว

    so amazing video bro

  • @mateuszwoczewski2989
    @mateuszwoczewski2989 3 ปีที่แล้ว +1

    Hi. Can you make a video (mayby you have one) or link some materials that show how to use SFML, C++ and VS Code ? I like the workspace of yours :)

    • @barj
      @barj  3 ปีที่แล้ว +1

      th-cam.com/video/ttYspMwzV8w/w-d-xo.html it’s your lucky day

    • @mateuszwoczewski2989
      @mateuszwoczewski2989 3 ปีที่แล้ว

      @@barj i love You

  • @harsh9558
    @harsh9558 3 ปีที่แล้ว

    Wow this video's really cool!

  • @Agent_Ax
    @Agent_Ax 3 ปีที่แล้ว

    Thanks For The Physics Source Code xD

  • @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 :)

  • @Torchl146
    @Torchl146 3 ปีที่แล้ว

    good shit bro intresting to watch as well

  • @jannickbremm9483
    @jannickbremm9483 3 ปีที่แล้ว +3

    3:44 line 6: is that some sort of plugin or did you use the Δ character?

    • @orionhess7712
      @orionhess7712 3 ปีที่แล้ว +3

      just used the character
      unicode go brrrrrrrrrrrrrrr

  • @itsinthescript3509
    @itsinthescript3509 2 ปีที่แล้ว

    wow thats insane i really gotta start learning cpp

  • @HiHi-ek1dd
    @HiHi-ek1dd 3 ปีที่แล้ว

    8k subs now still underrated

  • @grapesofmath1539
    @grapesofmath1539 11 หลายเดือนก่อน

    Hold up a second, I thought the golden age of video games was in the 90s? Jk jk, I still love 80s video games, and if it weren't for SMB (which saved the video game industry), and other great games of that era (mostly from Japan, like Pac-Man & Space Invaders), we wouldn't _have_ the video games of the 90s, so I guess I see what you mean, the golden age _started_ in the 80s.
    Great video by the way. I wish I knew about the SFML library before xP
    I guess... I've always been *extremely* lazy when it comes to looking into things, but I guess that only makes me all the more grateful that you mentioned that library in your video lmao
    Also, sorry about ranting at the beginning, I thought I would banter about the 90s for the lols but I can see how it might've come off as annoying.

  • @AcidNeko
    @AcidNeko 3 ปีที่แล้ว

    for larger games use fixed timestep+interpolation instead delta time, what if game freezed for a second, then delta time is multiplying everything by crazy number

    • @barj
      @barj  3 ปีที่แล้ว

      Seeing as I had no experience when making this, and I didn’t make this public; I didn’t pay too much attention to making everything perfect. I’ll be sure to keep this in mind for future endeavours :)

  • @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.

  • @ElliotSveum
    @ElliotSveum 3 ปีที่แล้ว +4

    Hey comment section! How would you make the hit box of the asteroid be exactly the same shape as the sprite? My guess is that he made a circular hitbox around the center of each asteroid, but if you were to make the hit box perfect, how would you go about it?

    • @gamer-wl5sv
      @gamer-wl5sv 2 ปีที่แล้ว +1

      1 - Perhaps Multi invisible hitbox facing and are the size of each edge of the asteroid...
      2 - As there is no engine and also no pre-made hitbox, he was able to make personal hit box similar to asteroid...

    • @kerch00
      @kerch00 2 ปีที่แล้ว

      He used rectangles probably, and for the collision it would be easiest and fastest to use ray-casting
      You shoot a horizontal and vertical ray to each corner of the bullet rectangle
      If the rays collide an even number of times with the asteroid before hitting the bullet the bullet is outside
      An odd number then the bullet is outside
      You would have to check between each side of the asteroid by noting down its vertices when calculating the collisions between ray and asteroid
      You could just be lazy and calculate collisions between the bullet rectangles and the sides of the asteroid, but this would not work in the case that the bullet is inside the asteroid, and this could very much happen with high delta time's (low framerates) as the past step in space for the bullet gets bigger, and may just surpass the boundaries of the asteroid without actually touching its edges

  • @ヽノ-g3s
    @ヽノ-g3s 3 ปีที่แล้ว +2

    Exelent vídeo new subs

    • @barj
      @barj  3 ปีที่แล้ว +1

      Welcome aboard!

  • @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 :)

  • @apr0l
    @apr0l 3 ปีที่แล้ว +3

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

  • @cmdrpain_
    @cmdrpain_ 3 ปีที่แล้ว

    yeah right. "no experience" good one

  • @theaquadiamond940
    @theaquadiamond940 3 ปีที่แล้ว

    Me, who's proud for making Tik Tac Toe alone watching this:

  • @voidbyteyt
    @voidbyteyt 3 ปีที่แล้ว

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

  • @ZooHair
    @ZooHair 4 ปีที่แล้ว +1

    Awesome video

  • @damin1916
    @damin1916 2 ปีที่แล้ว

    cool video i subbed

  • @edmund3504
    @edmund3504 3 ปีที่แล้ว

    this is really cool

    • @barj
      @barj  3 ปีที่แล้ว

      Thank you :)

  • @DomenSoster
    @DomenSoster 2 หลายเดือนก่อน

    Heyy how did you make gliding effect for the ship ?

  • @basicallybrand
    @basicallybrand 3 ปีที่แล้ว

    I really want that font u use in viscose

  • @ferothefox
    @ferothefox 3 ปีที่แล้ว

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

  • @陳禹安-o7o
    @陳禹安-o7o 2 ปีที่แล้ว

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

  • @sky96line
    @sky96line 3 ปีที่แล้ว +1

    5:23 what was that?
    Edit : I think hit box for bullet is too big, btw Kudos