You’re making your game, testing it as you add new features. Man, it’s pretty fun. But something’s missing, it’s too quiet. You need some music. Sure you could go and download some music available online for free, but that’s not gamedev, that’s using other people’s work. So, let’s make our own music.
In Part 1 we handled rendering, and in Part 2 we went over the rest of the components needed for the engine. Now that we can draw things on the screen and we’ve got a plan, the next thing we’ll want to do is play music and sound effects.
I’ve always been interested in game design and to that end I’ve always wanted to make a game. So I’m writing about what motivated me to start working on my current game and what game design ideas I had.
When first learning to make games, I think it pays to begin by re-creating some of the classics. Think about it, a lot of those old games were made by one person, on a very small team that didn’t have access to the tools you have now.
One of the effects I needed for a previous game was creating nebula for outerspace. But as a pixel art game, the nebula needed to look… pixel-artsy?
Error handling in a state-based C API such as OpenGL in C++ can sometimes be a bit of a pain. To help me with my own graphics engine, I created this simple method of wrapping the OpenGL function pointers to report errors as they happen.
When I first set out to do what the title says, I hit so many roadblocks and unforseen problems that it drove me bonkers. But eventually I figured it out. So if you’ve given up trying to work out how to stream ogg files with OpenAL, or if you just need to get it done, …