First snippet from the programmer's toolkit
An essential little tool for creating RTS type point and click games. These routines set up and execute a TNT implementation of Breshenham's Midpoint line algorithm. This moves an object quickly from one point to another by the shortest route, no floating point and no complex math calls.
It's quick, fully working and heavily commented. Any questions, just drop me a line in the forums.
This is the first in a series of 'handy doohickeys' that will build into a programmer's toolkit. A set of attractive, matching tutorials will follow.