The ezPlayer is a stand-alone application that can run any ezEngine game that is properly embedded in its own DLL. The ezEditor can launch a scene directly in the ezPlayer application. The ezPlayer is meant for testing and as a very slim example of how to write a custom game application.
The Player takes these command line arguments:
Player.exe -scene "path/to/exported/scene.ezObjectGraph" [-wnd "optional/path/to/Window.ddl"] [-profile "OptionalAssetProfileName"]
Typically you only need to pass the path to the exported scene (or prefab) file. The other options are used by the ezEditor to select different configurations.
The Player will automatically detect the projects directory by searching the file system for an ezProject file. It then executes the core ezEngine functionality, meaning it reads the configuration for the data directories as well as the engine plugins from the project config files. If the scene requires custom (game) plugins, they must be referenced in those config files.
Then it will execute the regular game loop. Thus, if the scene contains game objects to spawn a character controller or otherwise handle input and move the camera, you will be able to interact with it. If a custom plugin implements a custom game state that will be instantiated and can take full control over the application logic. If no such functionality is available, the Player will instantiate the
ezFallbackGameState which will spawn a player object, if a
ezPlayerStartPointComponent is part of the scene. Otherwise it will provide a simple WASD camera movement scheme. If
ezCameraComponents are placed in the scene, you can cycle through them using
Page Up and
Pressing Escape will close the Player application (unless overridden by a custom game state).
Common Application Features
Since ezPlayer is built on the application (TODO) framework, it provides a set of useful features common to all ez applications.
See this page for details.