Hello,

I have ported to object pascal the source code accompanying this article:

"Managing Game States in C++" by Tony Lewis
http://tonyandpaige.com/tutorials/game1.html

You can download my port from here:

http://www.urbanaustralia.org/cragwo...emanpas.tar.gz

(24 KB)

I have only tested it with FPC v1.9.8 and JEDI_SDL v1.0 (Beta 1) on Linux. But I see no reason why it shouldn't work on Windows with FPC or Delphi (apart from some minor changes). I compile it with: fpc -Mobjfpc -ostateman main.dpr

If you have any questions about it, just email me.

cragwolf@yahoo.com