Restuctured Free Pascal code from the legacy code. More is comming.
Merge branch 'master' of https://github.com/zsurzsalaszlo/pascalgameengine