indigo.shared.config.GameConfig
See theGameConfig companion object
final case class GameConfig(viewport: GameViewport, frameRateLimit: Option[FPS], clearColor: RGBA, magnification: Int, resizePolicy: ResizePolicy, 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.
- frameRateLimit
-
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.
- resizePolicy
-
Sets the policy for how Indigo games should resize themselves.
- transparentBackground
-
Make the canvas background transparent.
- viewport
-
How big is the window initially? Defaults to 550 x 400 pixels.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article