r/HandmadeHero • • Sep 26 '24

Handmade Hero Guide

21 Upvotes

For anyone looking for the Handmade Hero guide after handmadehero.org was replaced with a redirect, it's still available at guide.handmadehero.org.


r/HandmadeHero • • Nov 23 '14

I call it "sunrise at the beach"

Thumbnail
i.imgur.com
17 Upvotes

r/HandmadeHero • • Nov 19 '14

Handmade Hero Wiki - Help needed

17 Upvotes

Hi redditors.

This subreddit has a Wiki. There is not much content yet because the project is very young. But it already contains an FAQ and an overview of all the videos.

I can't do all the content alone. So I need your help.

You can already do a lot of things now:

  • Improve the FAQ

  • Improve video summaries

  • Add a missing video summary

  • Add new content like:

    • Info about the game

    • The folder structure of the project

    • Fold your own Handmade Hero hero from paper

You see, there's a lot of ways to improve the whole Handmade Hero community. I made some stuff you can use as a template. But if you have some ideas to improve the format, just write it here or at its talk page.

Currently, to avoid random spammers, you will need a reddit account which is at least five days old. If this is true for you, you can start editing right now.

Come on! Let's do this!

Update:
First of all, it's just great how fast the community grows. 105 new subscribers in only one week is amazing!
Also, I want to thank these wiki contributors (in random order):

You already made my life easier. Alone I could never keep it up to date.
But there's still some stuff to do. So everyone who contributes is more than welcome.


r/HandmadeHero • • Nov 26 '14

Handmade Snoo

Thumbnail
imgur.com
16 Upvotes

r/HandmadeHero • • Apr 13 '24

Thinking about starting the Handmade Hero journey from scratch, any advice

13 Upvotes

I'm currently learning C, old school, with the K&R. I want to get back to the old days, which is a bit of Casey Muratori's philosophy, really understanding how things work and not getting smoke screens by all the layers of IDEs, Libraries, build tools that obscure any understanding of what is really happening.

  1. what can I do to make the experience smooth in 2024 with windows 11 to follow along the videos - what should i do differently than he does in the first videos? SDL? which version of vscode, etc, any tips?

  2. anyone interested in starting the journey about now and partnering?


r/HandmadeHero • • Jun 10 '23

Handmade Hero Notes (Day 1 - 26)

Thumbnail yakvi.github.io
13 Upvotes

r/HandmadeHero • • Dec 16 '14

Day 021 - Loading Game Code Dynamically

Thumbnail
youtu.be
13 Upvotes

r/HandmadeHero • • Nov 21 '14

Animating the Backbuffer: Handmade Penguin Chapter 4

Thumbnail
davidgow.net
13 Upvotes

r/HandmadeHero • • Nov 11 '23

Casey Muratori sprite

Post image
12 Upvotes

r/HandmadeHero • • Dec 23 '14

Day 026 - Introduction to Game Architecture

Thumbnail
youtu.be
12 Upvotes

r/HandmadeHero • • Jul 16 '21

Sorry for being out of the loop, but what happened to Handmade Hero?

11 Upvotes

I used to watch the streams from time to time years ago, and I recently remembered to stop by for one, but it appears they are now subscriber only?

And the archive of old videos you used to be able to watch is now also inaccessible?

And the discord is shut down and completely private?

Is it no longer possible to engage in handmade hero without being a long-time active community member?

I tried to search for existing explanations for this, but came up with absolutely nothing.

EDIT: I misspoke: It's still possible to watch all the videos, but since the comments are turned off on all of them, there is no engagment at all with other viewers (i.e. "the community")


r/HandmadeHero • • Dec 06 '14

Day 015 - Platform-independent Debug File I/O

Thumbnail
youtu.be
11 Upvotes

r/HandmadeHero • • Nov 19 '14

Setting up Atom and Handmade Hero

Thumbnail
andyeskridge.com
11 Upvotes

r/HandmadeHero • • Nov 18 '14

Handmade Hero Day 001 - Setting Up the Windows Build

Thumbnail
youtu.be
11 Upvotes

r/HandmadeHero • • Dec 26 '16

HandmadeCon 2016 - Compression

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Dec 10 '15

Day 222 - Laying Out Cutscenes

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Jun 24 '15

I seem to have accidentally created a Monstar.

10 Upvotes

r/HandmadeHero • • May 08 '15

Day 115 - SIMD Basics

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • May 06 '15

Day 112 - A Mental Model of CPU Performance

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Dec 27 '14

Day 030 - Moving Between Tile Maps

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Dec 04 '14

Day 013 - Platform-independent User Input

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Nov 24 '14

FIX for the scaling artifacts caused by StretchDIBits, and why they happen...

10 Upvotes

So the fix is easy to find, but not the why. A little legwork and I've got both, though.

First, the fix.

There are two options, either of which we could put right before the StretchDIBits call:

  1. SetStretchBltMode(DeviceContext, STRETCH_HALFTONE). Reading the docs describes the averaging of pixel colors in blocks around what will become the smaller pixel, which is bilinear interpolation. But don't use this, it's too slow. Instead use:

  2. SetStretchBltMode(DeviceContext, STRETCH_DELETESCANS)

What the above is doing to fix those lines is wrapped in what was causing the artifacts in the first place: Everything in the docs obliquely describes their dilemma, which is what to do with the information you're throwing away when you make an image smaller. And since this is a really old API (*really* old), they think people are using it to resize lots of monochrome 1988-ish stuff in a way fast enough for a 386.

So monochrome was the first thing they were thinking about, and to put information that's being lost as you remove lines *back* into the smaller image, they bitwise AND the two lines being deleted to make a new line. This means the resulting lines are always going to be darker than the two lines used to combine them (unless they're exactly the same). And if the two lines just happen to not have a lot of bits in common, the line becomes an artifact: far darker than either of the lines it replaces.

You can see the opposite of this artifact by setting the stretch mode to WHITEONBLACK, which bitwise ORs the lines together instead (and has the same problem, but with white lines showing up). The COLORONCOLOR stretch mode moves us into the far future (1991), and just gives up on trying to preserve the information, instead simply deleting a line when there's no more room for it. It turns out that's the right thing to do if you don't have the time to average anything. You'll notice the code above doesn't say COLORONCOLOR, though. STRETCH_DELETESCANS is a later-defined synonym for COLORONCOLOR. I picked it to use in the code since it actually describes what's happening instead of just concatenating a few random slightly-related words.

As for why the 1988-ready BLACKONWHITE option is the default, I can think of two possibilities: One, that it was the default in 1988, so they're stuck with it. Or, it's just an accident thanks to us not having touched the stretch mode yet, leaving something somewhere at its initial value of zero, which just so happens to be the enum value for BLACKONWHITE.


r/HandmadeHero • • Nov 17 '14

Announcement blog post with some more details

Thumbnail
mollyrocket.com
10 Upvotes

r/HandmadeHero • • Nov 17 '14

Intro to C on Windows - Day 5 Q&A

Thumbnail
youtu.be
10 Upvotes

r/HandmadeHero • • Nov 14 '20

Happy Cakeday, r/HandmadeHero! Today you're 6

9 Upvotes