![]() |
Oficina Framework
1.3
Games Framework
|
This page contains examples and usage of GameArgs when invoking EngineCore's Initialize method.
As you can see above, using GameArgs is fairly simple. All you need to do is create a list of arguments and pass them to the initializer, and they will be handled accordingly.
If a GameArg is not recognized, it'll be prompted to the console, regardless of the build nature.
Sets the name of the game (including on game window).
Usage:
x: String containing the name of the game
Sets the rendering resolution.
Usage:
or
x: Resolution to be given to the renderer.
Use the syntax <Width>x<Height> after the = sign to specify a custom resolution.
This GameArg is now deprecated.
Use
Sets the window to a fixed refresh rate.
Do not give this GameArg if you intend to use variable rate.
Usage:
x: Desired refresh rate.
Enable network communication.
Only use this if any network communication is intended.
Usage:
Enable diagnostics mode.
Only enable this for debug, for there could be performance drops.
Usage:
Sets the icon for the application.
Usage:
x: Path to the icon .png file on Game Path.
Enables the audio thread (recomended).
If inactive or failed to initialize, audio management will be embeded on game loop.
Usage:
Mutes background music.
Usage:
Enables VSync.
Usage: