final case class GameConfig(viewport: GameViewport, frameRateLimit: Option[FPS], clearColor: RGBA, magnification: Int, transparentBackground: Boolean, advanced: AdvancedGameConfig)
All the base settings needed to get a game up and running.
- Value parameters:
- advanced
Additional settings to help tune your game.
- clearColor
Default background colour. Defaults to Black.
- frameRate
Optionally throttles frame rate. By default (
None
), the browser sets the limits, recommended unless you specifically need a lower framerate.- magnification
Pixel magnification level. Defaults to 1.
- transparentBackground
Make the canvas background transparent.
- viewport
How big is the window initially? Defaults to 550 x 400 pixels.
- Companion:
- object