| 1 | # Demos that use Castle Game Engine in an outdated (not advised) way |
| 2 | |
| 3 | This directory contains demos that are dear to my heart, |
| 4 | and I want to have them as _Castle Game Engine_ demos, |
| 5 | but the way they are done *right now* is not something I want to advise to new developers. |
| 6 | So they are not good as demos "how to make this or that in CGE". |
| 7 | |
| 8 | TODO: All these demos are "TODO, to remake them using new CGE API". |
| 9 | Because the demos present something useful / pretty, |
| 10 | we want to show how to do it using CGE. |
| 11 | |
| 12 | In particular: |
| 13 | |
| 14 | - `isometric_game/` reads a map in custom (text file) format and renders it using TDrawableImage. |
| 15 | |
| 16 | While this is allowed, it not advised. I would rather recommend to |
| 17 | |
| 18 | - Use Tiled ( https://www.mapeditor.org/ ) to design such map, and render it using our [TCastleTiledMap](https://castle-engine.io/tiled_maps) inside a viewport. |
| 19 | |
| 20 | - Use TCastleImageTransform inside a TCastleViewport to represent all images. Once we add "snapping" for TCasleTransform in editor, you will even be able to design such map in CGE editor. |
| 21 | |
| 22 | See https://castle-engine.io/using_images , https://castle-engine.io/how_to_render_2d . |
| 23 | |
| 24 | The effort to show a "new way" is already started -- see `examples/isometric_game` for a new version. We only keep this deprecated version to show alternative rendering method. |
| 25 | |
| 26 | - `fixed_camera_game/` sets up a specialized rendering using code. This can be now largely designed in CGE editor and be much more flexible. |
| 27 | |
| 28 | - `joystick/` uses UI not designed in editor. Also it shows a complicated joystick API, that we hope to improve in near future. Reading joystick axis and button should be easier, and account for various joystick types better. |