| 1 | # Zombie fighter - game with multiple states |
| 2 | |
| 3 | Demo of Castle Game Engine states (`TCastleView`) to define various game states, like |
| 4 | |
| 5 | - main menu |
| 6 | - playing the game |
| 7 | - dialog asking user for something |
| 8 | |
| 9 | 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 . |
| 10 | |
| 11 | Using [Castle Game Engine](https://castle-engine.io/). |
| 12 | |
| 13 | ## Building |
| 14 | |
| 15 | Compile by: |
| 16 | |
| 17 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 18 | |
| 19 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 20 | |
| 21 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `zombie_fighter_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 22 | |
| 23 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `zombie_fighter_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |