Showing my 3D game written in C using SDL2 (no engine)

  Рет қаралды 69,535

Carl the Person

Carl the Person

Күн бұрын

Пікірлер: 120
@vadiks20032
@vadiks20032 2 жыл бұрын
i like how you barely can hear somebody yelling at the end. it gives the video a bit of horror thoughts. what if this guy is held captive and when he heard people coming, he turned off his video immediately?
@carltheperson
@carltheperson 2 жыл бұрын
You can keep thinking that if it makes this video go viral
@CasualGameDev
@CasualGameDev 2 жыл бұрын
Lmao probably his mom yelling at him to do dishes or something is more likely
@Wanderer2035
@Wanderer2035 2 жыл бұрын
I would delete these comments, just more trolls that have nothing better to do but be toxic
@vadiks20032
@vadiks20032 2 жыл бұрын
@@Wanderer2035 what do you mean
@lupsik1
@lupsik1 2 жыл бұрын
Listening to this in a studio environment, you can hear a woman talking loudly to someone probably a few meters away defo not yelling. Tbh sounded just like how mom sounds when she tells me about sth I forgot to do. And then a loud low freq thump that pressurised my whole room which I presume was someone closing the door somewhere else. My theory is: He has a sibling who didn't want to listen to his mom so he closed himself in his room. Certainty: idk like 25%
@n00bc0de7
@n00bc0de7 Жыл бұрын
SDL2 has a function in it called SDL_RenderGeometry that you can use for texture mapping polygons as well. I use it in my 3D engine and it works pretty well.
@Cinarbayramic
@Cinarbayramic Ай бұрын
im trying to make an engine too but how do you find the screen coordinates of the polygons
@quelich
@quelich Жыл бұрын
Well done. I think every developer should understand how to program in C and your work gives us a great perspective. Keep going :D
@ToniTaku88
@ToniTaku88 2 жыл бұрын
I admire young people who follow their passion! Never stop :)! Thanks for the content.
@matthewlloyd3255
@matthewlloyd3255 2 жыл бұрын
That's great. I use SDL2 as well and have done some fake 3d using 2d sprites that simply scale based on z-distance into the world but this is really nice.
@aaaowski7048
@aaaowski7048 2 жыл бұрын
the parallax effect to draw the sides sounds like alot of hacky mathematics fun
@alganpokemon905
@alganpokemon905 Жыл бұрын
you say fake 3d, but all 3d graphics is fake 3d hahaha, it's always a bunch of mathematics that creates the illusion of 3d visuals
@viniciuss.9250
@viniciuss.9250 2 жыл бұрын
Amazing project! Congrats!
@User-w8t4t
@User-w8t4t Жыл бұрын
3d project without engine is awesome.
@Fernando-du5uj
@Fernando-du5uj Жыл бұрын
Great job, mate. I've been using SDL2 as well. I've been making a game 70's Atari Asteroids-like, simple game, just to get used to C and SDL2 and its been very fun.
@mirzaalam9844
@mirzaalam9844 Жыл бұрын
Fascinating! Thanks for covering it will be interesting to look through.
@wlockuz4467
@wlockuz4467 2 жыл бұрын
Magnus Carlsen is that you?
@malwaretestingfan
@malwaretestingfan 2 жыл бұрын
Commenting for the algorithm, your project looks amazing.
@variablecopper
@variablecopper 9 ай бұрын
Really cool project! I really like how the blocks come into view with the blurring effect. There's just a small issue with the text. You're not deleting the textures for the text in the corner after using them, which causes memory leaks. I know this because I did the same thing! Just adding some lines to delete the textures in the "drawSpeedText()" function fixes the memory usage. I'd also recommend creating your variables and surfaces at init time to reduce the unnecessary processes. Regardless, I had fun playing this and looking at the source code. I hope my advice helps!
@CheesyAceGameplay
@CheesyAceGameplay Жыл бұрын
V nice -- love the idea of making it from scratch
@ZenoDovahkiin
@ZenoDovahkiin Жыл бұрын
This is indeed a person.
@esra_erimez
@esra_erimez Жыл бұрын
Wow, well done! Most impressive.
@elshangadimov6163
@elshangadimov6163 2 жыл бұрын
Woow cool project. commenting for the algorithm
@InnerEagle
@InnerEagle 2 жыл бұрын
I *hate* you,,, I'm envious... I can't even manage to build a game in Godot, and I have experience in python... You are fucking amazing man, I love you, subbing
@vova-ri2qu
@vova-ri2qu 2 жыл бұрын
interesting game idea
@vitalash
@vitalash 2 жыл бұрын
Fun video and project :) C is supreme!
@BlazingTide
@BlazingTide Жыл бұрын
Can't tell if you're falling or moving straight. Quite the optical illusion
@kebman
@kebman Жыл бұрын
Yes, this was interesting! Thank you!
@ogreeni
@ogreeni 2 жыл бұрын
That’s so cool
@styleisaweapon
@styleisaweapon Жыл бұрын
2D version was called pitfall before the more commercialized different pitfall
@bigbrain8839
@bigbrain8839 2 жыл бұрын
Watching this got me nostalgia with my first game i made
@gvn1111
@gvn1111 Жыл бұрын
Awesome!!!
@MuhammadHosny0
@MuhammadHosny0 2 жыл бұрын
Excellent job
@steluste
@steluste 2 жыл бұрын
Non-programmers: this is not even a game. Its just stupid cubes Programmers: OMG he did it in C. It looks so sexy
@DylanFalconer
@DylanFalconer Жыл бұрын
Nice one brudda
@luigidipaolo7148
@luigidipaolo7148 Жыл бұрын
Bro that is awesome
@samdavepollard
@samdavepollard Жыл бұрын
very nice
@v.gedace1519
@v.gedace1519 Жыл бұрын
Thanks cool and well done! Go ahead - 4 sure I see a bright future for you! People like you are always searched! Wonne move to Germany? ;-)
@czupryn0135
@czupryn0135 2 жыл бұрын
very nice, good job
@SF-eg3fq
@SF-eg3fq Жыл бұрын
wow, this guy looks like a geek, he must be good with what he's doing
@Nunya58294
@Nunya58294 Жыл бұрын
This makes me think of the Star Field screen saver from Windows XP....
@gustavohqueiroz
@gustavohqueiroz Жыл бұрын
Impressive!
@ChronicoOne
@ChronicoOne 2 жыл бұрын
Looks great! I've made something similar but less flashy in OpenGL with C, and it was an absolute grind making everything work right. Is SDL a more forgiving library?
@sayori3939
@sayori3939 2 жыл бұрын
Definitely, and it seems it's really fast too, i believe for default it uses software rendering but you can use both hardware acceleration or opengl
@davidcottrell1308
@davidcottrell1308 2 жыл бұрын
Very Cool!!!
@Elxnicorojas
@Elxnicorojas 2 жыл бұрын
Really cool
@Mister2463
@Mister2463 2 жыл бұрын
Super cool
@The_Mad-Ramx
@The_Mad-Ramx 3 ай бұрын
absolutely facinating to me as a newbie aspiring C programmer! do u still do this stuff? id love to learn
@zurreality
@zurreality Жыл бұрын
very nice and very impressive :D
@Lukifah
@Lukifah 2 жыл бұрын
are you john carmack
@SnakeEngine
@SnakeEngine Жыл бұрын
Haha, yes, looks like joung Carmack. Unfortunately, you can't impress that many people with simple games anymore, but it is still essential to build foundational skills for bigger endeavers in the future.
@Temerold_se
@Temerold_se Жыл бұрын
Cool!
@boozflooz6255
@boozflooz6255 2 жыл бұрын
Very nice!
@salluzziluca
@salluzziluca 2 жыл бұрын
Tremendo!
@alexandrubossro
@alexandrubossro 2 жыл бұрын
Very interesting
@marsbars1105
@marsbars1105 Жыл бұрын
Does anyone know if SDL uses the modern OpenGL graphics pipeline?
@SnakeEngine
@SnakeEngine Жыл бұрын
The SDL renderer will use DirectX on Windows and Metal on Mac. On Linux/Android, not sure what OpenGl version it uses, but SDL3 is already in the works and it will for sure utilize Opengl 3.3+.
@pedrogabrielnogueira1068
@pedrogabrielnogueira1068 Жыл бұрын
This is cool
@wilkesreid
@wilkesreid 2 жыл бұрын
Nice job!
@LookiePookie
@LookiePookie 2 жыл бұрын
good work buddy :)
@starc0w
@starc0w 2 жыл бұрын
great!
@ronitrajput3934
@ronitrajput3934 Жыл бұрын
What is this sorcery 👀.
@howstothis
@howstothis Жыл бұрын
Make the background slightly change hue from green to red, when red is at very high speed when you actually unable to survive anymore
@i_harikrish_18
@i_harikrish_18 4 ай бұрын
Can u explain how to run this game in windows please
@FernandoBaldrich
@FernandoBaldrich Жыл бұрын
Looks great man. Btw what is that color theme for vscode?
@blazerhead8781
@blazerhead8781 2 жыл бұрын
this is crazy
@o0QuAdSh0t0o
@o0QuAdSh0t0o Жыл бұрын
First-person asteroids
@scottynewmanfm
@scottynewmanfm Жыл бұрын
Can we port it to the TI-84 Plus CE ?
@nickst2797
@nickst2797 2 жыл бұрын
Like for procedural programming.
@hadiassaddiab
@hadiassaddiab Жыл бұрын
I didn't know Magnus Carlson can code
@0xdeadbeef131
@0xdeadbeef131 Жыл бұрын
Great video! How is Clipping preformed? I'd really appreciate a tutorial or explanation video on that!!
@Singlton
@Singlton Жыл бұрын
How to use the math to draw on computer
@ВладиславГришин-ш7ш
@ВладиславГришин-ш7ш Жыл бұрын
когда то хотел написать полет между звезд, на бейсике на бк шке. но памяти в бк шке не хватило
@Jimmith829
@Jimmith829 2 жыл бұрын
nice
@omnimathic
@omnimathic 2 жыл бұрын
Hello, do you have any tutorial to build this game on youtube?
@6DunJuan9
@6DunJuan9 Жыл бұрын
That's trippy, I like it. Can you make the blocks appear random colour?
@sabinbaral4132
@sabinbaral4132 2 жыл бұрын
You should make a tutorial video about this
@firstname4337
@firstname4337 Жыл бұрын
he put a link to the github code in the video description -- figure it out yourself
@sabinbaral4132
@sabinbaral4132 Жыл бұрын
@@firstname4337 yeah bro i got more than 100 types of books in opengl and computer graphics in my library and 1000 other links and 1000 other repos on computer graphics project You just stfu and mind your own fucking business
@notarandom7
@notarandom7 Жыл бұрын
Was it hard? Did you use Shaders?
@mamtachahal1277
@mamtachahal1277 Жыл бұрын
What's your vscode color theme?
@LiquidMark
@LiquidMark 2 жыл бұрын
epic
@Wanderer2035
@Wanderer2035 2 жыл бұрын
Great project. Do you plan on doing any project tutorials in C#? Im planning on learning that soon.
@odomobo
@odomobo Жыл бұрын
C# is a very different beast than C. The good thing is that despite being more complex, it's much easier and more friendly to work in C# than in C
@m4rloncha
@m4rloncha Жыл бұрын
Nobody: Literally nobody: Me: Is it going forward or down?
@johnnypepperonii
@johnnypepperonii Жыл бұрын
whats the VSCode theme you are using?
@styleisaweapon
@styleisaweapon Жыл бұрын
everything other than the collision detection can be done in the pixel shader itself - even the just in time generation of the random lattice points its casting through
@the_smiths
@the_smiths 2 жыл бұрын
Hvor ser du skarp ud😮
@aaaowski7048
@aaaowski7048 2 жыл бұрын
if you are looking for a good school you might want to have a look on the s42 curriculum
@electromatic138
@electromatic138 Жыл бұрын
What vscode theme is he using
@kotb2000
@kotb2000 Жыл бұрын
what is the vscode theme ?
@Felix-ru6uk
@Felix-ru6uk 2 жыл бұрын
Looks like someone wanted to remake Knuckles Chaotix Bonus game.
@robrobbins
@robrobbins Жыл бұрын
You can do that kind of stuff in JavaScript as generative art. Then you can sell your art on a NFT marketplace like fxhash. It might not be widely known, but fxhash does kind of expose the source code of generative art pieces so you can see how some of the top generative artists do their magic.
@dinkelvollkornbrot
@dinkelvollkornbrot 2 жыл бұрын
what vscode theme are you using?
@carltheperson
@carltheperson 2 жыл бұрын
I use Community Material Theme Darker High Contrast. I also add this to my setting.json file to darken the background a bit: "workbench.colorCustomizations": { "[Community Material Theme Darker High Contrast]": { "editor.background": "#0e0e0e" } },
@valentin.stamate
@valentin.stamate Жыл бұрын
damn
@ofal4535
@ofal4535 Жыл бұрын
Magnus carlsen?
@noxabellus
@noxabellus Жыл бұрын
Hello "Carl the Person," much respect for my non-binary siblings
@i_am_a_real_cat1443
@i_am_a_real_cat1443 Жыл бұрын
Is this a blockchain?
@RB-mm7ce
@RB-mm7ce 2 жыл бұрын
I am sorry, but how is the game 3D?
@thisisnotok2100
@thisisnotok2100 Жыл бұрын
I am sorry, but how is it *not* 3D?
@felcynchannel840
@felcynchannel840 2 жыл бұрын
I'm kinda a novice at C. Studying 121 in college rn (Which is intro to c). So far my games have all been terminal based. What is SDl2?
@carltheperson
@carltheperson 2 жыл бұрын
SDL2 is a 2D graphics library for C. It's not too hard to make simple stuff like drawing triangles and rectangles. It's fun you should try it (:
@carltheperson
@carltheperson 2 жыл бұрын
Let me know if you need help
@felcynchannel840
@felcynchannel840 2 жыл бұрын
@@carltheperson What would a good way to start be? Any recommended youtube tutorials?
@carltheperson
@carltheperson 2 жыл бұрын
​@@felcynchannel840 I really like this playlist kzbin.info/aero/PLvv0ScY6vfd-p1gSnbQhY7vMe2rng0IL0 He teaches using C++ but especially the beginning should be understandable for pure C programmers
@Narblo
@Narblo 2 жыл бұрын
SDL is cheating, is basically an engine with a shitty API.
@BottropBoy
@BottropBoy 2 жыл бұрын
Why you don't use unity? Your game is boring and takes a lot of afford to make
@thisisnotok2100
@thisisnotok2100 Жыл бұрын
he explained in the video, he did it to challenge himself in 3D graphics. The game itself is a means to an end.
@jacksonbeccue2811
@jacksonbeccue2811 Жыл бұрын
this was very impressive, enjoyed watching thanks for the great content
@illegalsmirf
@illegalsmirf Жыл бұрын
Why?
@jasonpenick7498
@jasonpenick7498 Жыл бұрын
Game "Engines" are smoke and mirrors. Tons of extra overhead and useless features, for the appearance of making things easier, but inevitably you end up fighting the engine. You are doing it the right way.
@Carlos-kh5qu
@Carlos-kh5qu 2 жыл бұрын
really cool, and you could use OpenGL with SDL2 to get some funky shaders going on, after i learned how to use shaders it's been my favorite thing to code. here's some resources/libraries to get started in C+SDL2+OpenGL: best tutorial site out there for opengl learnopengl.com/ glad, you'll need this to load modern opengl functions (explained in the tutorial) glad.dav1d.de/ put the version, compat mode, extensions and you're good to go note: the tutorial uses GLFW so just use the SDL equivalents (swapwindow, sethint etc) last there's the cglm, with all the math you need for graphics like perspective, affine transforms and even quaternions github.com/recp/cglm note 2: this one you can just include and use
@Bodenman
@Bodenman Жыл бұрын
Super cool
@raptoress6131
@raptoress6131 Жыл бұрын
Cool!
My MEAN sister annoys me! 😡 Use this gadget #hack
00:24
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 145 МЛН
How Do Computers Display 3D on a 2D Screen? (Perspective Projection)
26:54
"Hello, World" in 5 CURSED languages that no one should use
13:08
Dreams of Code
Рет қаралды 553 М.
I made the same game in Assembly, C and C++
4:20
Nathan Baggs
Рет қаралды 792 М.
Skip one block gaps in Minecraft.
9:16
Heppe
Рет қаралды 433 М.
RayLib 5 Released - The Easiest C/C++ Game Library Just Got Even Better
10:42
Writing 2D Games in C using SDL by Thomas Lively
47:32
CS50
Рет қаралды 189 М.
Game Development with SDL 2.0 (Steam Dev Days 2014)
51:11
Steamworks Development
Рет қаралды 228 М.
I Made a Graphics Engine (again)
8:27
Zyger
Рет қаралды 177 М.
How to make Minecraft in C++ or any other language
9:28
Low Level Game Dev
Рет қаралды 54 М.
I Made A Physics Engine
6:59
Zyger
Рет қаралды 145 М.