Nicely made! The trick with memcpy'ing data over to the sprite sheet, and then scaling it up to get the map is really clever.