Welcome to the TNT Directory. Here you will find complete games and examples contributed by the TNT Basic community, as well as useful links to other websites. Feel free to add links to complete shareware games - you don't have to include the source!

You are not logged in.
2nd Jun 2020 13:11 GMT
Sort by: View:
Selected: 1 of 41 total examples

Breshenhams midpoint line algorithm

Version 0.1

Posted by allnodcoms Last Updated on 5th Sep 2005
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.
Breshenhams midpoint line algorithm source code

Submit Example...