Making a C++ Game with No Experience!
Ойын-сауық
I spent 1 week learning C++ from scratch and making a game in SFML.
Discord: / discord
Twitter: / barjiyt
Chapters:
0:00 - Intro
1:00 - Setup
1:36 - Sorting Algorithms
1:53 - Asteroids
5:26 - Outro
SFML VSCODE REPO: • SFML - Easy Setup With...
SFML Build Tutorial: • Video
Cool Videos By My Friends:
Polymars: Discord Bot Game- • Making a Game With Dis...
Coder Gopher: Starting A Programming War - • Starting a Programming...
Sam Hogan: Minecraft Without Blocks: • I Made Minecraft Witho...
Tantan's Dream Game - • Voxel RPG Project - My...
In Today's Game Development video we make asteroids in 1 week using c++ and sfml. I am a game dev making a game in c++ , a faithful recreation of asteroids. How do you make a game in c++ one might ask? Well here's how! inspired by my good friend polymars. "Making a C++ Game with No Experience!"
Пікірлер: 485
Become a member to access cool perks (Free unlimited muffins) kzread.info/dron/z3l6nyODzXLzTxIkARZ8rw.htmljoin
@IamPyu-v
10 ай бұрын
your next step is C then Rust then Assembly :)
@MarshiDev
10 ай бұрын
@@IamPyu-vand then pure binary
my volume was all the way up because the videos sound is so low, then i hear PEW PEW PEW PEW
@barj
3 жыл бұрын
lol sorry about that.
@serenestateofbeing1062
3 жыл бұрын
@@barj you're good hahaha 😆
@ii7mdj_353
3 жыл бұрын
😂
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
3 жыл бұрын
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
3 жыл бұрын
@@crazyksp8344 Yeah, and big AAA games are rarely made without modifying the game engine
@guitarplayer1495
3 жыл бұрын
@@awwastor or they make they own engine
@yashrawat9409
3 жыл бұрын
@@guitarplayer1495 mostly Epic Games have Unreal , Rockstar have their own idk the name
@TheArrowedKnee
2 жыл бұрын
@@yashrawat9409 EA has Frostbite, CDPR as RedEngine. Most big companies have their own engine, but Unreal is the most prevalent one
"making a game with no experience" proceeds to show us how to code google.
@madmemer3470
3 жыл бұрын
with c++
@lonelyfloat2582
2 жыл бұрын
@@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
2 жыл бұрын
@@ianboyer2224 ayyy i guessed right!
@kuchukboromdebbarma2117
2 жыл бұрын
@@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
@universecreator988
2 жыл бұрын
@@kuchukboromdebbarma2117 Ayo, a quick look at pointers isn't enough if you work with the heap. That's how bugs are created
-reads title -clicks video -sees it's 5 minutes long somethings wrong I can feel it
welcome to the dark side
@handyz5576
3 жыл бұрын
Your video on Discord api game inspired me to make on myself :D love it! kzread.info/dash/bejne/rGmNu5mNlM_NZLw.html
@CrazyGreekGR
3 жыл бұрын
You are the reason I started learning c++ so I can make a game for my psp OwO
@u_ori
3 жыл бұрын
Yes
@sode07
3 жыл бұрын
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
2 жыл бұрын
@@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).
100,000 Views! Gonna release some very similar videos soon so be sure to leave a sub if you enjoyed :)
@r0use277
3 жыл бұрын
Can i see the source code of the game somewhere?
@drkmgoswami3042
3 жыл бұрын
Voice is slow or it should pitch like polymars
@HiHi-ek1dd
3 жыл бұрын
Remember me when you get big
@HiHi-ek1dd
3 жыл бұрын
Deal?
@unkownhaghtist6177
3 жыл бұрын
@@HiHi-ek1dd I can Remember You XD
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
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
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
2 жыл бұрын
@@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
2 жыл бұрын
@@BingtheLizard yeah, thats actually so. But again, its not the whole gaming industry. Btw, undertale is a super indie game :)
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 👌
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
10 ай бұрын
It's called line rider
I liked the bit where he made the asteroids game!
@devtimm1218
3 жыл бұрын
Wow that was realy cool
@nuggetchicken3873
3 жыл бұрын
Yeah I think that was the bes5 part
@zacky_code
3 жыл бұрын
Really dude? I liked the part when he showed the code!
@pranavi1949
3 жыл бұрын
@@devtimm1218 wow that was really cool
@F4biano
2 жыл бұрын
@@pranavi1949 wow that was really cool
EpicC++Gang now has a foothold in Britain
@invalid5777
3 жыл бұрын
heyy
@valsistem
3 жыл бұрын
It should've been EPIC++ Gang thought
@quickscopesheep5994
3 жыл бұрын
he used sfml instead of sdl. he betrayed us
really love the editing in this, great job!
@barj
3 жыл бұрын
Cheers 😀
Awesome video! My first dabbling into game dev was making an Asteroids clone using LibGDX, so this hit me right in the nostalgia :)
Just reading the title I thought this was some kind of suicide trip but it actually is amazing! Keep it up!!
Sounds about right 👍 Anything you learned, or should have learned in highschool and college will help you in your c++ journey.
That's really dope! looking forward to replicate the same one by myself!
@barj
3 жыл бұрын
Keep me posted!
This is wonderful, thanks for doing this
Such a quality video, you deserve more subs
@barj
3 жыл бұрын
I appreciate that!
This is insane! Good job.
This is dopeeee! Would love it if you’d make longer videos, I’d watch them all for hours
@barj
3 жыл бұрын
Working on a video about OpenGL that I hope will be around 20 minutes so buckle up :)
Dude nice video. I like that you did everything by scratch
This is a very good example! Thanks much
Bloody great man thank you!
Very nice! This is encouraging, I want to try something like this too :)
Thank you, I was stuck, trying to figure out how to apply c++ and this video helped.
Great vid, very well executed
Very good content, not too long but still holds everything :D
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
2 жыл бұрын
Hey bro, can I add you, can you teach me how to make the game? 👀🙏
4:33 Ahhh yes the friend to all glitch masters. *SPAGHETTI CODE!*
Dude is legend my gowd
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++
C++ Takes months to learns and years to master.
you have hit the algorithm barji
BRO! You have done a job though. I liked it. You have got yourself a new new subscriber man.
@barj
3 жыл бұрын
Thank you :)
Congrats or 100k subs! Yesterday when I checked your channel, it was 99k.
How does this channel only have 1.75k subs, doesn"t make sense the video quality is so good
@barj
3 жыл бұрын
Thanks Peter, means a lot :)
@rodolforp4200
3 жыл бұрын
because of this video title
@jw200
3 жыл бұрын
@@rodolforp4200 Because channel has too few videos and rarely upload
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
3 жыл бұрын
Thanks man, that means a lot :)
@Nisox
3 жыл бұрын
@@barj your videos are so amazing, I love the way you explain stuff like delta time and everything, keep it up!!
Wow amazing that you made it making a game without game engine is so much harder than making a game with a game engine
omg! so cool. thx for sharing with us.
@barj
3 жыл бұрын
Thanks for watching :)
Awesome video
Wow, SFML looks like a Codingame Challenge!
Wow this video's really cool!
this is a awesome video
respect you man
so amazing video bro
This is awesome :D
i kinda understood delta time, now it was 100% clear, thank you sir
@barj
3 жыл бұрын
No problem big guy. I explained it again in my python jam video but better if you want the reassurance :)
@guiAI
3 жыл бұрын
@@barj Nice! A quick response, i will definitely check that video out!
wow man thats so sick!
me 1 week with C++: hello world him 1 week with C++: I CODED THE ENTIRE MILKY WAY GALAXY AND THIS HOW!
@timtech9361
2 жыл бұрын
It's called ctrl c + ctrl v.
good shit bro intresting to watch as well
cool video i subbed
bro i am also learning to code and make games thanks for motivation man
@barj
3 жыл бұрын
No problem man
Amazing! I'm just learning c++ :)
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
3 жыл бұрын
For sure. The game isn't too hard to make, it's the jump from a managed language that gets you :)
So cool!
Super Cool!
Hey, I got a quick question on how you managed to do the delta time. I still cant seem to find out....
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
This makes me wish my 3 years of IT and computer science would pay off already
what are some good sources for code libraries? what are some examples of other libraries other than physics?
I just started learning c++, I'll if I can copy this from scratch once I'm confident enough
@barj
3 жыл бұрын
Keep me updated :0
Thanks For The Physics Source Code xD
this is really cool
@barj
3 жыл бұрын
Thank you :)
Really nice job ! Could you please tell me which is the font that you're using in this video ?
Good video!
How does this only have 70 views?
Discord be like : Playing Visual Studio Code pog vid btw
And I'm over here still trying to center this damn div
stack exchange works miracles
I'm curious as to how your VS looks so clean and simple. How'd you do that?
8k subs now still underrated
Can I ask what extension(s) you have installed in VSCode for your background and syntax and highlighting? It's very pleasant to look at.
@frogsaregreatwizards9097
3 жыл бұрын
i think you are talking about ''one dark pro'' and ''material icon theme'''
Gamemaker user : oh that game
Hi, I'm new to video game development. I ask you is it possible with the use of C++ and SFML library to create a horizontal and / or vertical scrolling for platform games following a pure geometric approach and writing a few lines of code ? Thank you
@zvxcvxcz
Жыл бұрын
Quantify "a few." SFML actually does have the rudimentary bits of a 2D engine (some shape creation, texture/sprite loading), so it probably isn't too hard to what you're looking for... but I would expect a few hundred lines of C++ (probably under 200 presenting code logically... after all C++ doesn't care much about white space and you can smush it all into one line if you really want), mostly logic and loading assets though, so maybe, depends what you mean by a few.
how you setup c++? so visual studio and which project?
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.
Any reason you made the SFML build tutorial private? It was very helpful
Wondering the name of the theme you are using in VS code. Thanks!
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
3 жыл бұрын
One of my biggest regrets is losing the source code to this project. :/
wow thats insane i really gotta start learning cpp
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.
Awesome, but can I ask, why didn't you use hpp files instead of h, is there a reason?
Nice Job! Game MADE using C++ btw how did you get to do that presentation at 2:08 ?
@barj
3 жыл бұрын
Thanks! after effects.
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.
Interesting 👍
Hey man, awesome video, Couldn't help but notice, you got a really cool second monitor, which monitor is it?
@barj
3 жыл бұрын
Thanks I hope you enjoyed! It's the MSI MAG OPTIX 241C. The main display is a MSI AG32CV.
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
2 жыл бұрын
I don't get it, can someone explain for me?
How do you do the screen wrapping thing?
Exelent vídeo new subs
@barj
3 жыл бұрын
Welcome aboard!
You can thank dani because I clicked on your videos after recognizing your profile picture from his muck video (btw great name lol)
@barj
3 жыл бұрын
Let’s gooo
That's good
Good work! If only we could add scatter functionality to the destroyed asteroids which inturn could act as bullets causing a domino...
@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 :)
Great video. I decided to learn c++ and attempt to port my raycasting engine from java to it... let's see how well this goes
@lightswitch2622
2 жыл бұрын
Did you succeed?
Making games is interesting challenge for one person, indie developer. Even if it takes years
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
3 жыл бұрын
kzread.info/dash/bejne/pqiN1dKGp928aNo.html it’s your lucky day
@mateuszwoczewski2989
3 жыл бұрын
@@barj i love You
Do you recommend c++ or unity to make games?
sfml makes this incredibly easy lmao
@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
3 жыл бұрын
Damn. Who hurt you piggy
@SomeRandomPiggo
3 жыл бұрын
@@barj glfw :(
yeah right. "no experience" good one