GameConfig

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val asString: String
lazy val frameRateDeltaMillis: Double