A FreeBASIC demo where you control a white asterisk, the Computer controls a little red face, and both of you are placed in a maze. Oh, and the Computer chases you π
- No square roots; only Integers used, no divisions
- No queues & no stacks used!
- Wall following
- Main trick is Walter D. Pullen's Chain Algorithm, from his Daedalus program (see the Algorithms page, and the Daedalus page)
- Cross product of Vectors! π± (Idea taken from StackOverflow)
- A touch of Bresenham's Line Algorithm (adapted and simplified from the pseudocode at the Wikipedia page)
- Compile in Debug Mode and see the Chain Algorithm in action
- The FreeBASIC compiler, basically π
- If you use Windows and just want to try the demo, go to the Releases section and download the compiled program
If I see even a tiny bit of interest in this project I'll add some production notes regarding this little program of mine (on which I spent two months and a half, in the spare time).
For now, I'll say that English is not my first language, I tried my best to add meaningful comments to the source π
Also, most of the maps included were converted or produced with the Daedalus program. Slot Racers and Miniature Golf are two old Atari 2600 games.