Introduction In this tutorial, you will be introduced to game physics. This is an incredibly broad field, and quite complex too, so you'll really only get a teaser. This will however produce some pretty effects, which you will most definitely appreciate. Physics Many recent games use highly ... Read more »
Introduction In this article we can put away our coding fingers for a moment and focus on an important feature of C++. It is portable and extendable! This portability of code is an extremely important feature of C++ - but it requires that we write clean, well maintained classes or Read more »
Introduction If you are like me, you probably hate mathematics. For some strange reason, game development is full of it, yet many game developers consider themselves noobs in this area. It might have something to do with the fact that you get away with plenty of trial and error: once Read more »
Introduction In article 9, you where introduced to the noble art of bitmagic. Here's a quick refresher: multiplying an integer value by (a power of) 2 can be done by shifting its (binary) bits to the left. Division is similar, except this time you shift to the right. So, a Read more »
Introduction If you got here in good shape, you learned a lot: you went though the basics of C programming, and got a taste of object-oriented programming as well. In the meantime, you experimented with quite a few game-related concepts. In the second half of the tutorial series you will Read more »
Introduction You have been using a rather fundamental feature of C++ for a while now, and today you'll actually be properly introduced to it. It's the feature that adds the '++' to C, the feature that will add class to your code. Or rather: classes. It's time to get objec... Read more »
Introduction It's time to introduce you to a great concept for 2D graphics in C++, that you will find very useful and easy to use: Tiles. Tiles are a simple way of displaying 2D graphics for games such as Mahjong, strategic-type turn-based games and so on. We will be using Read more »
In this tutorial, we're going to look at one of the most common and easy ways to keep track of "things" in C++. Arrays are a simple way of keeping data in order so that it can be accessed and changed using a simple variable called an index. Getting the Read more »
In this article we will return to the numbers that represent colors, as demonstrated in the second installment of this series. This can only be done through the wonderful world of bit magic, which is by the way a very nice place to be, so we will explore it thoroughly. Read more »
One of the harder concepts in C++ is the concept of pointers. Pointers have everything to do with the very nature of the language: C++ gets you pretty close to the hardware you are working with, and one of the most important parts of that hardware is memory. Your system Read more »
In this tutorial, we're going to look at how you can stop and start your code to see what it is doing as well as view some variables and values. This is a process called debugging, it can be a complex process but we'll stick with the basics of breakpoints, Read more »
In this tutorial, we're going to look at how you can get the computer to calculate with decimal values (numbers like 3.14), instead of only integral values (numbers like 3). Getting the stuff you need As with the last tutorial, we'll use the template again. Extract the package to a Read more »
This tutorial is about the condition commands C/C++ has which allow you to make important decisions that can help you to control the way your program flows. You already did some of these conditions when you did loops without realizing it, so this is just a cool way to make Read more »
This tutorial is about two things: sprites and loops. Sprites will get you on your way to making interesting stuff move on the screen, whereas loops will help you write less code to do more. On with the show! Getting the stuff you need As with the last tutorial, we’ll Read more »
The previous tutorial introduced you to the project template. You can now draw some lines and print some text in all kinds of colors, but that's clearly far from the goal of making actual games, where bullets wizz past in glorious 3D and enemies flank you in the smartest ways. Read more »
As you noticed in the first article, setting up a project in Visual Studio can be quite a task. And we didn't (nearly) touch all the settings that you can adjust for a project either. To make your life a bit easier, we will use a project template from now Read more »