Demo of Castle Game Engine states (TCastleView) to define various game states, like
- main menu
- playing the game
- dialog asking user for something
You can organize your game into such states, it is a nice way of splitting your user interface code into manageable chunks. See https://castle-engine.io/states .
Using Castle Game Engine.
Compile by:
-
CGE editor. Just use menu items "Compile" or "Compile And Run".
-
Or use CGE command-line build tool. Run
castle-engine compilein this directory. -
Or use Lazarus. Open in Lazarus
zombie_fighter_standalone.lpifile and compile / run from Lazarus. Make sure to first register CGE Lazarus packages. -
Or use Delphi. Open in Delphi
zombie_fighter_standalone.dprojfile and compile / run from Delphi. See CGE and Delphi documentation for details.