| 1 | # Terrain generation and visualization |
| 2 | |
| 3 | Terrain generation and visualization. |
| 4 | |
| 5 | To use terrain in your own games: |
| 6 | |
| 7 | - open CGE editor |
| 8 | - add `TCastleTerrain` to display a terrain |
| 9 | - add `TCastleTerrainNoise` to generate terrain heights |
| 10 | - set `TCastleTerrain.Data` to connect it with `TCastleTerrainNoise`. |
| 11 | |
| 12 | Using [Castle Game Engine](https://castle-engine.io/). |
| 13 | |
| 14 | ## Building |
| 15 | |
| 16 | Compile by: |
| 17 | |
| 18 | - [CGE editor](https://castle-engine.io/editor). Just use menu items _"Compile"_ or _"Compile And Run"_. |
| 19 | |
| 20 | - Or use [CGE command-line build tool](https://castle-engine.io/build_tool). Run `castle-engine compile` in this directory. |
| 21 | |
| 22 | - Or use [Lazarus](https://www.lazarus-ide.org/). Open in Lazarus `terrain_standalone.lpi` file and compile / run from Lazarus. Make sure to first register [CGE Lazarus packages](https://castle-engine.io/lazarus). |
| 23 | |
| 24 | - Or use [Delphi](https://www.embarcadero.com/products/Delphi). Open in Delphi `terrain_standalone.dproj` file and compile / run from Delphi. See [CGE and Delphi](https://castle-engine.io/delphi) documentation for details. |