Live data from Hacker News

Handmade Hero: C game from scratch

handmadehero.org

11–20 of 60 posts

Re: Handmade Hero: C game from scratch

#12
post #11

[deleted]

> I though it was C, but in the video OP starts with C++?

Very few people, even programmers, seem to know the difference. Some even claim to program in C/C++, which is about as meaningful as Java/Javascript or Java/C#.

All those Foogols look alike anyway.

ETA: I have no idea if we watched the same video. The commenting style in the first video on the top of the page was used in C decades before C++ existed, though, and since there was no actual code, it's impossible to tell if the person we're talking about will or will not confuse C with C++.

Re: Handmade Hero: C game from scratch

#13
post #12
post #11

[deleted]

> I though it was C, but in the video OP starts with C++? Very few people, even programmers, seem to know the difference. Some even claim to program in C/C++, which is about as meaningful as Java/Javascript or Java/C#. All those Foogols look alike anyway. ETA: I have no idea if we watched the same video. The commenting style in the first video on the top of the page was used in C decades before C++ existed, though, a…

I believe he was talking about the "intro to C on Windows" video that was posted on Youtube.

Admittedly, it's an hour long so I don't have the time to watch it. Skimming over it though, it looks like he may be writing C code, but compiling it via Microsofts C++ compiler. That's just my guess though. The code he's writing has some Cisms in it (And no C++isms, though it's basically just a 'Hello World'), but it's in a 'cpp' file and I presume VS is using a C++ compiler to do so.

Re: Handmade Hero: C game from scratch

#14
post #12

Earlier quoted context omitted.

> I though it was C, but in the video OP starts with C++? Very few people, even programmers, seem to know the difference. Some even claim to program in C/C++, which is about as meaningful as Java/Javascript or Java/C#. All those Foogols look alike anyway. ETA: I have no idea if we watched the same video. The commenting style in the first video on the top of the page was used in C decades before C++ existed, though, a…

I believe he was talking about the "intro to C on Windows" video that was posted on Youtube. Admittedly, it's an hour long so I don't have the time to watch it. Skimming over it though, it looks like he may be writing C code, but compiling it via Microsofts C++ compiler. That's just my guess though. The code he's writing has some Cisms in it (And no C++isms, though it's basically just a 'Hello World'), but it's in a…

Which only recently added support for C99...

Re: Handmade Hero: C game from scratch

#15

Earlier quoted context omitted.

I believe he was talking about the "intro to C on Windows" video that was posted on Youtube. Admittedly, it's an hour long so I don't have the time to watch it. Skimming over it though, it looks like he may be writing C code, but compiling it via Microsofts C++ compiler. That's just my guess though. The code he's writing has some Cisms in it (And no C++isms, though it's basically just a 'Hello World'), but it's in a…

Which only recently added support for C99...

And even that not completely...

Re: Handmade Hero: C game from scratch

#16

This looks very interesting, in straight C no less. Props to this guy. I'll definitely be watching it, although I take some mild offense at the idea that I am somehow less of a gamer or game-maker if I decide to use an engine. Truthfully, I am not a very good programmer: I don't delight in getting into the guts of the mathematical algorithms that allow for the complicated physics calculations, AI pathfinding, or mult…

There's nothing wrong with using an engine at all. For the same reason I use Numpy and don't bother making my own array manipulation classes.

Most of the time you don't need to reinvent the wheel because someone has probably spent a PhD implementing it better than you ever will. I think this is a perfectly valid excuse and I use it every day. If I didn't, I'd get no work done. With the libraries available few people should ever need to implement an FFT, for example. However, it's good practice to try coding some algorithms yourself to see how they work.

In terms of games, I assume the intent wasn't to belittle, but to try and show people what happens under the hood. It helps you make better decisions about which engine to use and what features to use within the engine. If you're given pathfinding options within your engine, to take a silly example, do you know enough about the algorithm to know which one would be best for your game instead of blindly choosing A*?

Understanding how the underlying code (probably) works allows you to make better decisions about which engines to use, which features you want and which you could brew yourself if you needed to.

Re: Handmade Hero: C game from scratch

#18
post #7

Wow. I can't even begin to express how much the premise behind this series resonates with me. I've been looking for something just like this. My only issue is that, although in C, the preview/introduction video seems pretty centered around visual studio[0]. In the FAQ you say that multi platform support for *nix systems will be added later. How exactly will this work for those of us who want to follow along, but don'…

Judging by the initial video, you won't be able to follow this without a Windows machine. The author plans to implement a game from scratch (no third party library will be used) in C on Windows, which means he will use Win32 functions (OS specific code) for creating a window, reading/showing image files etc ...

If you want to follow along from day one I suggest you install Windows in a virtual machine (you can download a legal copy of Windows and use it for about a month, just make sure you regularly save the code on your main OS). Alternatively, you can wait until the author will present how to do the same thing (window creation etc ...) on a Unix like OS.

Re: Handmade Hero: C game from scratch

#19
post #7

Wow. I can't even begin to express how much the premise behind this series resonates with me. I've been looking for something just like this. My only issue is that, although in C, the preview/introduction video seems pretty centered around visual studio[0]. In the FAQ you say that multi platform support for *nix systems will be added later. How exactly will this work for those of us who want to follow along, but don'…

Similarly you might enjoy reconstruct cave story:

https://www.youtube.com/playlist?list=PL006xsVEsbKjSKBmLu1cl...

http://www.reddit.com/r/reconstructcavestory/

Cheers

Re: Handmade Hero: C game from scratch

#20

Earlier quoted context omitted.

I believe he was talking about the "intro to C on Windows" video that was posted on Youtube. Admittedly, it's an hour long so I don't have the time to watch it. Skimming over it though, it looks like he may be writing C code, but compiling it via Microsofts C++ compiler. That's just my guess though. The code he's writing has some Cisms in it (And no C++isms, though it's basically just a 'Hello World'), but it's in a…

Which only recently added support for C99...

C++ and .NET Native are the future of native code programming on Windows.

C is for compatibility with older code, or code coming from other platforms.

Post reply on HN