Starting a new project
Getting started
The easiest way to start a new project is by copying the template project from $EM/example/template to your project location. Then adapt build.eant, system.xace and the root class for your project. The importent part is the project directory in build.eant as well as the cluster directory in system.xace.
Root class
The root class of the system should inherit from EM_APPLICATION. This will give you access to all subsystems and scene management.
Root class creator
The creation feature of the root class - the system's entry point - is the place to start all needed subsystems and to set global options. An overview of all subsystems and how to enable them is given in the subsystems section. Which global options should be set and how is shown in the options section.
If you rely on a subsystem - like most certain the video subsystem - you should check if it could be enabled with is_enabled and take appropriate action if the initialisation failed.
After the subsystems and options are set up, the applications first scene has to be set with set_scene and finally the scene can be started with launch. A description of scene types and how to use them is given in the scene management section.
After the last scene has stopped, launch will return control again and you can clean up any resources needed by your application. In particular all enabled subsystems should be disabled.