cozy saturday night gamedev in C

  Рет қаралды 64,895

jdh

jdh

Күн бұрын

code code code code code
PATREON: / jdah
TWITTER: / jdah__
C LIVE RELOADING: github.com/jdah/reloadhost
EXAMPLE SOFTWARE RENDERER: github.com/jdah/doomenstein-3d
GITHUB: github.com/jdah
EDITOR: NeoVim
CONFIGS: github.com/jdah/dotfiles
THEME: gruvbox
RESOURCES:
learnopengl.com
opengl-tutorial.org
shadertoy.com
stackoverflow.com

Пікірлер: 71
@4lkareth
@4lkareth 10 ай бұрын
still can't get over the fact that this genius programmer happens to also be a freaking handsome dude
@lovely-shrubbery8578
@lovely-shrubbery8578 10 ай бұрын
We all can't have great RNG 😂
@xhivo97
@xhivo97 10 ай бұрын
Also programs in C, I'm in love.
@lapidations
@lapidations 10 ай бұрын
Yeah the dude is awkwardly handsome, no homo. If only he wasn't such an Apple fanboy, he'd be marriage material.
@4lkareth
@4lkareth 10 ай бұрын
@@blaynebradley3896 lmao why is this so real
@vihan1873
@vihan1873 10 ай бұрын
​@@lapidationshe uses apple? Time to block him lol
@setm7x682
@setm7x682 10 ай бұрын
wow i can't belive robbert pattinson is making a game in c
@sebastiancamara
@sebastiancamara 10 ай бұрын
Probably the most handsome programmer I've ever seen. No homo, I think.
@simiuciacia
@simiuciacia 5 ай бұрын
"I think"!? 🙂
@kodyduvall349
@kodyduvall349 10 ай бұрын
I really enjoy the live streams! I really wish you'd do them more often, but I know you're a busy guy. Keep up the good work.
@Rebeljah
@Rebeljah 10 ай бұрын
"Oh no, he's hot!" - Squidward Tentacles
@multiarray2320
@multiarray2320 10 ай бұрын
you do videos and streams more irregular than code bullet. i am sad that i missed this one :/
@Nelson-bn3cy
@Nelson-bn3cy 10 ай бұрын
Same😢
@rautamies2305
@rautamies2305 10 ай бұрын
This project is so cool! As someone who is making a 3d engine as well, the showcase smells a little like feature creep :D
@TripImmigration
@TripImmigration 10 ай бұрын
Oh this guy is literally my crush 🥰 damn Watching while organizing my code, your voice make me so calm. Thank you
@elkelan7516
@elkelan7516 10 ай бұрын
with liquids, will you have a thing like liquid_f? Doom prob does something similar to that. liquid_f can be for things like lava killing you, or acid damaging you. Are you going to implement something like that?
@ILightWas
@ILightWas 10 ай бұрын
if you could share the song playlist, would be sweet. I liked it, very chill
@pastasawce
@pastasawce 10 ай бұрын
Very marathon like. Love the finger guns.
@in70x
@in70x 9 ай бұрын
You ever use Raylib? I haven’t personally used it, I don’t do a lot of game dev (more OS security stuffs)… But it looks really cool and fun.
@ariandannemann4544
@ariandannemann4544 10 ай бұрын
Please can you do a video of your full vim setup?
@ssygon2
@ssygon2 10 ай бұрын
1:13:43 In BASIC, I used to be a fan of GOTO, until the flow of execution didn't return back, and caused a stackoverflow error/crash, cause of low memory. At the time, I didn't understand why this was happening and couldn't track the reason. Then I became a fan of GOSUB, which potentially is not a good idea too 😂
@markos9644
@markos9644 10 ай бұрын
wish he did more of this streams
@dr_duck___3529
@dr_duck___3529 10 ай бұрын
Wish I would have see the stream but I was busy configuring my vim
@ndotl
@ndotl 10 ай бұрын
I worked overnight on a production deployment. My feature update was error free, but updates and system it depended on were in intensive care most of the night. We wrapped up around 2 PM Saturday, so my day was destroyed.
@xesf
@xesf 9 ай бұрын
I am interested to know how you have achieved the hot reloading? Is the editor and game in separate dynamic libraries? Do you have specific code to detect the libraries have changed?
@alphenex8974
@alphenex8974 2 ай бұрын
Although I have no clue about his stuff but yes. It reloads the DLL that the main game is using
@davidkacmar6522
@davidkacmar6522 10 ай бұрын
Hey jdh would you be willing to list a books / learning sources you used / using to get to this level? I had 2 semester with C in my uni mostly some data structures(hash tables, binary trees, binary decision diagrams etc) and some procedural programing(mallocs, callocs, lined lists, 2D-dynamic arrays, pointers) but seeing this I would like to know more :D i see the ones for openGL in "resources" but that seems like a big jump :D
@garethma7734
@garethma7734 10 ай бұрын
I am not jdh, but here's an advice I can give. Just read code, and write code. Stop reading books, or even documentations (to some extent). Reading books only gives the *illusion* that you understand something, because the author actually explains the concepts to you, so your brain pretends that you understand. But often times, you don't. Reading code helps you understand the implementation and how it works, and more importantly writing code yourself makes sure you understand how the parts work.
@boody8844
@boody8844 10 ай бұрын
Same here, I would love to know!
@xhivo97
@xhivo97 10 ай бұрын
If you've done those already you're ready to just mess around and build stuff. Just pick any book in computer graphics with good user reviews online and you should be good to go. To get good tho you not only have to read the book but also write loads of code. As for reading code it's harder than it sounds and person a big weakness of mine but reading code is good advice.
@Ehal256
@Ehal256 9 ай бұрын
Read and write tons of code.
@morsintus8323
@morsintus8323 7 ай бұрын
49:35 that aged well
@user-cx6ec2kp6u
@user-cx6ec2kp6u 10 ай бұрын
Have you heard of raylib? I'm trying to make a game in c with it it's super cool!
@turb0004
@turb0004 10 ай бұрын
It was great, please make more streams in future
@andreygribeiro
@andreygribeiro 10 ай бұрын
how do I obtain all the knowledge like this guy?
@VictorRodriguez-zp2do
@VictorRodriguez-zp2do 9 ай бұрын
Have you thought about trying D?
@angelos9800
@angelos9800 10 ай бұрын
Missed the stream! 😪
@xybarra3702
@xybarra3702 10 ай бұрын
Starts at 3:55
@TheMacaroniGun
@TheMacaroniGun 10 ай бұрын
Please go live more!
@brawldude2656
@brawldude2656 5 ай бұрын
27k lines 💀 Bro's code so clean that he can manage 27k lines of code
@pppkenken6610
@pppkenken6610 10 ай бұрын
Terminal is logarithmically function.
@anzhel3268
@anzhel3268 10 ай бұрын
no way jdh called football soccer
@pppkenken6610
@pppkenken6610 10 ай бұрын
Typedef integer solution. Thanks
@undefBehav
@undefBehav 10 ай бұрын
So from what I could gather DYNLIST implementation sounds much like how Doom and Build engines had done it, in that you've written what basically seems like your own custom "malloc", right? You allocate a huge chunk of contiguous memory on startup and use dynlist_push when necessary to allocate the next available slot and return to the caller.
@undefBehav
@undefBehav 10 ай бұрын
And btw, what's in those DYNLIST macros?
@1..1..1..1H
@1..1..1..1H 10 ай бұрын
Love your theme! What is it?
@jdh
@jdh 10 ай бұрын
gruvbox!
@1..1..1..1H
@1..1..1..1H 10 ай бұрын
@@jdh Thank you.
@Inyourface3445
@Inyourface3445 10 ай бұрын
@@jdh a few things that you should add are mipmapping, witch removes the moiré effect. An example of this would be in Minecraft, try disabling it and see what it looks like.
@Name_cannot_be_blank
@Name_cannot_be_blank 10 ай бұрын
@@Inyourface3445 mipmapping isnt a few things, its a thing also if you watched ANY of his recent videos you should know he is for that software render style
@krstudy9162
@krstudy9162 9 ай бұрын
Somebody please ask him to create a video of vim setup and usage... 😶‍🌫
@cheeze7910
@cheeze7910 10 ай бұрын
What IDE do you use?
@joaoruss0
@joaoruss0 10 ай бұрын
Description
@cheeze7910
@cheeze7910 10 ай бұрын
@@joaoruss0 thanks
@issaclifts
@issaclifts 10 ай бұрын
Hi jdh!
@octa-pie
@octa-pie 10 ай бұрын
bo bo
@peterkraghen
@peterkraghen 10 ай бұрын
danish at 41:10
@xhivo97
@xhivo97 10 ай бұрын
Have you seen the talk about modern C? They mentioned some really interesting stuff and apparently C99 has some features to do with compound literals that even C++ doesn't have. Also, just as a language to learn personally I'm drawn to Odin which could be good for games, or not I can't tell for sure yet. But tbh C is scary esp if you deal with other's code cause weird stuff can be hidden in olain sight and UB can appear out of thin air. If you work on you're own projects you can avoid those issues by nit doing weird stuff and developing a sense for "oh, this looks like it has potential to be fishy."
@marcossidoruk8033
@marcossidoruk8033 10 ай бұрын
There is no way of hiding weird stuff on plain sight in C I don't know what the hell are you talking about. C is the only language on earth that completely prevents you from doing that since every function call that happens is explicit and every function must have a unique name (no function overloading). If weird stuff happens in C then it happens right in front of your face every single time. Also UB doesn't appear out of thin air, UB happens because of invalid code or invalid inputs wich is absolutely not "thin air".
@xhivo97
@xhivo97 9 ай бұрын
@@marcossidoruk8033 I can't argue with this. I clearly failed so say what I wanted to say. I guess you have to help me on this one lol, but what I wanted to express was that there's certain rules experienced C developers (I am not one of them, I just had opportunity to ask some questions to experienced C developers)follow to avoid shooting themselves in the foot, which might not be entirely obvious for people learning C for example. I'm sure UB was not the best word but there's always amazing problems you can run into C if you try hard enough or if you're naively using language features without an understanding of the standard or the hardware. Basically, the best C programmer I know is someone who has a very deep knowledge of the C standard and who's job is formal verification, when we asked them if they trust themselves to write C code they said no.
@marcossidoruk8033
@marcossidoruk8033 9 ай бұрын
@@xhivo97 Well odin has the same problems, even in a language like Rust you will have the same problems when you try to implement a performant memory allocator and have to use the unsafe keyword everywhere. Until full program agnostic memory correctness formal verification exists that is just how programming works, no way around it, if what you have to do you can do fully in something like safe Rust then good for you, but that will not always be the case. Also it is worth to mention that not every program is safety constrained. A videogame for example you care that it doesn't crash often, but it need not be perfect, the software for a commercial airplane autopilot tho.... What I am really trying to say is that If your friend works at formal verification, then he is probably thinking about problems very different from videogames where safety is the absolute priority, so his answer may not be that illustrative for, lets say, gamedev.
@The-python-guy
@The-python-guy 4 ай бұрын
yall, gay af
@whoopsimsorry2546
@whoopsimsorry2546 10 ай бұрын
Literally the only thing that I dislike about your stuff is the MacOS. Do not switch to Linux, let us normies get some females too.
@Spongman
@Spongman 10 ай бұрын
if you've got a bunch of functions that take structs as their first param, and you're building your own poorly-performing implementation of virtual functions in C, you might as well do it in C++. just saying...
@EmergencyTemporalShift
@EmergencyTemporalShift 10 ай бұрын
Starts at 3:55
I added reflection to C++ just to make my game work.
16:30
I made an entire OS that only runs Tetris
22:37
jdh
Рет қаралды 1,6 МЛН
ЗРЯ Я 24 ЧАСА СТОЯЛ НА ГВОЗДЯХ! #нонале
00:35
LA FINE 😂😂😂 @arnaldomangini
00:26
Giuseppe Barbuto
Рет қаралды 13 МЛН
Vulcanite, It's complicated - Space Exploration #47
35:55
Programming portals for my DOOM-style FPS
17:15
jdh
Рет қаралды 189 М.
Blazingly Fast Greedy Mesher - Voxel Engine Optimizations
23:35
I built my own graphics card
15:34
jdh
Рет қаралды 1,4 МЛН
4 Months of Game Programming With My Own Engine
21:30
jdh
Рет қаралды 363 М.
I clicked way too many times
19:26
DangerouslyFunny
Рет қаралды 14 М.
Remaking MINECRAFT 2D (Minicraft)
15:46
jdh
Рет қаралды 305 М.
Why I made a Game Engine for my 2D platformer (C#)
19:01
How does a custom game engine work? // Code Walkthrough
52:47
How to get a message from a developer? #standoff #system #scam
0:53
Standoff 2 Live
Рет қаралды 497 М.
Turn On Wi-Fi Automatically
0:49
Tech Official
Рет қаралды 741 М.
Распаковка айфона в воде😱 #shorts
0:25
iPhone 15 в реальной жизни
20:03
HUDAKOV
Рет қаралды 638 М.