19 | 19 | One final thing to note about game life is how the map editor, Atlas, works. Atlas is launched by running pyrogenesis with the -editor option. It creates a window using the wxWidgets library, and then runs a special copy of the game within this window. This makes it possible to render objects in Atlas using the same code that renders them in the game, and to start testing the game at any time by pressing the Play Simulation button in Atlas. The Atlas GUI is also scriptable. It is implemented in binaries/data/tools/atlas/scripts. Atlas also supports ''hotloading'' GUI scripts, so it is possible to edit a script and immediately see its effect in a running Atlas window. The goal is to eventually support hotloading for the game GUI and possibly even game logic scripts in 0 A.D. |