In this tutorial, I will show you how to program a vectorial 2D platform game from the ground up. The code is in straightforward, procedural C++, but all the concepts are language-agnostic. The tutorial focuses on the fundamentals of collision detection and the details that make this simple ...
The above definition also extends to vectors. Let’s say that you have two vectors v and w; Each vector is multiplied by a scalar a and b, giving the expression: av + bw. The expression av + bw is called a linear combination of v and w. Using a little linear algebra, you can sh...