final case
class GameConfig(viewport: GameViewport, frameRate: Int, clearColor: RGBA, magnification: Int, advanced: AdvancedGameConfig)
All the base settings needed to get a game up and running.
- Value Params
- advanced
Additional settings to help tune your game.
- clearColor
Default background colour. Defaults to Black.
- frameRate
Desired frame rate (browsers cap at 60 FPS). Defaults to 60 FPS.
- magnification
Pixel magnification level. Defaults to 1.
- viewport
How big is the window initially? Defaults to 550 x 400 pixels.
- Companion
- object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any