We are currently in the process of converting the website to the new design. Some pages, like this one, are still broken. We appreciate your patience.
Timothy McCarthy
What do other compilers do with this? AFAIK, a C compiler should accept this. If that's legal the…
»
James Widman
Stuff like this is why, even though I've been in J16/PL22.16 since 2004, I can't blame Casey when …
»
James Widman
To collect myself, I had to take a brief walk away from my machine after posting this. I just came…
»
James Widman
wow, man. I was about to ask if you'd tested this, 'cause I knew I'd previously tested code sampl…
»
Jay
Hopefully a simple question that I am struggling with. I am at day 115 at the start of SIMD optimi…
»
Timothy McCarthy
Well...consider this: Stroustrup called this a "C compatibility hack." In C, the struct tag is no…
»
James Widman
Could you please expand on this? My understanding is that "typedef struct" helps to prevent name…
»
Timothy McCarthy
If I understand the POV, a C programmer is dismayed by the size of the generated C++ code; much li…
»
hendrix
C++ must have done something right
»
Ameen Sayegh
Oh My God!!! I almost lost my mind, trying to figure out why my hero movement is different than Ca…
»
Aidan
By adding epsilons, you're inherently adding some inaccuracy to your simulation. You really want t…
»
Mārtiņš Možeiko
Yeah, pretty much what you said. Just get the input from user, process it, and render result on sc…
»
Bryan Taylor
I could also multiply every position with 10000 or something and just use plain ints or is that a…
»
Christian
I have never used fixed point position before. I guess that would fix some of the rounding errors.…
»
elle
Have you ever implemented a debug console as in Quake, Unreal Tournament, Source games that is als…
»
Philip Buuck
Hello everyone, The contribution I am currently planning is called Handmade Quake, where I start f…
»
Bryan Taylor
Use to store positions. This gives you an even amount of precision over your entire world. Only…
»
Christian
Yeah maybe. If the guy jumps and lands on the ramp the epsilon would keep him high enough for it t…
»
Runaway Rabbit
I'm still real new to this, but couldn't you use an epsilon to account for floating-point errors?
»
Runaway Rabbit
I don't think there is a bug in your code. I think what you are seeing is StretchDIBits trying to …
»
Connor
I am not new to handmade hero, but I just started following along a couple of weeks ago. Up to thi…
»
Christian
So I am making a 2d platformer, heavily influenced by HH. I use more or less the same collision de…
»
Pete
Thank you for the clear answers. Now I know why it looks this way and that i can make my changes w…
»
Mārtiņš Možeiko
It was valid code only with Visual Studio. In C that was never a valid code. Not sure how far back…
»
Asaf Gartner
That used to be valid code. That's why you can see Casey doing for loops like this in some : That…
»
Pete
I am working on a project where there is a lot of old code written for Windows. On several places …
»
Andrew Bromage
Unsurprisingly, Windows does it for the same reason. You got it! The thing that can be done more…
»
people
I thought I'd post a diff of the "test_asset_builder.*" files which have support for xlib core te…
»
Mārtiņš Možeiko
To be compatible with Windows? :D It also uses gs for 64-bit and fs for 32-bit. Or maybe (I'm gues…
»
Mārtiņš Možeiko
In my previous company I have successfully shipped product on Linux as binary executable with link…
»