indigo

package indigo

Type members

Classlikes

final case
class BootResult[A](gameConfig: GameConfig, bootData: A, animations: Set[Animation], assets: Set[AssetType], fonts: Set[FontInfo], subSystems: Set[SubSystem], shaders: Set[Shader])

The game bootstrapping process results in a BootResult, which only occurs once on initial game load. The boot result decribes all of the initial values of your game such as it's configuration, data, animations, assets, fonts, subsystems, and shaders. You can add additional assets, animations, fonts, and shaders later during the setup process, so it is recommended that you only load the bare minimum needed to get your game going during the boot phase.

The game bootstrapping process results in a BootResult, which only occurs once on initial game load. The boot result decribes all of the initial values of your game such as it's configuration, data, animations, assets, fonts, subsystems, and shaders. You can add additional assets, animations, fonts, and shaders later during the setup process, so it is recommended that you only load the bare minimum needed to get your game going during the boot phase.

Companion
object
object BootResult
Companion
class
trait IndigoDemo[BootData, StartUpData, Model, ViewModel] extends GameLauncher

A trait representing a minimal set of functions to get your game running

A trait representing a minimal set of functions to get your game running

Type Params
BootData

The class type representing you a successful game boot up

Model

The class type representing your game's model

StartUpData

The class type representing your successful startup data

ViewModel

The class type representing your game's view model

Example

object MyGame extends IndigoDemo[BootData, StartUpData, Model, ViewModel]

trait IndigoGame[BootData, StartUpData, Model, ViewModel] extends GameLauncher

A trait representing a game with scene management baked in

A trait representing a game with scene management baked in

Type Params
BootData

The class type representing you a successful game boot up

Model

The class type representing your game's model

StartUpData

The class type representing your successful startup data

ViewModel

The class type representing your game's view model

Example

object MyGame extends IndigoGame[BootData, StartUpData, Model, ViewModel]

trait IndigoSandbox[StartUpData, Model] extends GameLauncher

A trait representing a minimal set of functions to get your game running

A trait representing a minimal set of functions to get your game running

Type Params
Model

The class type representing your game's model

StartUpData

The class type representing your successful startup data

Example

object MyGame extends IndigoSandbox[StartUpData, Model]

object syntax

Types

type Blend = Blend
type Camera = Camera
type Combo = Combo
type Cycle = Cycle
type Delete = Delete
type Depth = Depth
type Dice = Dice
type Fill = Fill
type Flip = Flip
type Font = Font
type Frame = Frame
type FrameContext[StartUpData] = FrameContext[StartUpData]
type Graphic[M <: Material] = Graphic[M]
type Group = Group
type Key = Key
type Layer = Layer
type Load = Load
type Loaded = Loaded
type Millis = Millis
type Mouse = Mouse
type Outcome[T] = Outcome[T]
type Pixels = Pixels
type Point = Point
type RGB = RGB
type RGBA = RGBA
type Save = Save
type Shader = Shader
type Shape = Shape
type Signal[A] = Signal[A]
type SignalFunction[A, B] = SignalFunction[A, B]
type SignalReader[R, A] = SignalReader[R, A]
type SignalState[S, A] = SignalState[S, A]
type Size = Size
type Sprite[M <: Material] = Sprite[M]
type Startup[SuccessType] = Startup[SuccessType]
type Stroke = Stroke
type Text[M <: Material] = Text[M]
type Track = Track
type Volume = Volume
type Zoom = Zoom
type array[T] = array[T]
type float = float
type mat4 = mat4
type vec2 = vec2
type vec3 = vec3
type vec4 = vec4

Value members

Concrete fields

val AccessControl: AccessControl
val AnimationAction: AnimationAction
val AssetBatchLoadError: AssetBatchLoadError
val AssetBatchLoaded: AssetBatchLoaded
val BlendFactor: BlendFactor
val Delete: Delete
val Dice: Dice
val Fill: Fill
val FillType: FillType
val Flip: Flip
val Font: Font
val FontStyle: FontStyle
val FontVariant: FontVariant
val FontWeight: FontWeight
val GamepadInput: GamepadInput
val HttpResponse: HttpResponse
val Key: Key
val Load: Load
val LoadAsset: LoadAsset
val LoadAssetBatch: LoadAssetBatch
val Loaded: Loaded
val PlaySound: PlaySound
val PlaybackPattern: PlaybackPattern
val RGB: RGB
val RGBA: RGBA
val RendererDetails: RendererDetails
val Save: Save
val Size: Size
val SpriteAndAnimations: SpriteAndAnimations
val Text: Text
val TextAlign: TextAlign
val TextAlignment: TextAlignment
val TextBaseLine: TextBaseLine
val TextDirection: TextDirection
val TextStroke: TextStroke
val Texture: Texture
val TiledGridCell: TiledGridCell
val TiledGridLayer: TiledGridLayer
val TiledGridMap: TiledGridMap
val UniformBlock: UniformBlock
val ViewportResize: ViewportResize
val WebSocketConfig: WebSocketConfig
val WebSocketId: WebSocketId
val Zoom: Zoom

defaultGameConfig Provides a useful default config set up:

defaultGameConfig Provides a useful default config set up:

  • Game Viewport = 550 x 400
  • FPS = 30
  • Clear color = Black
  • Magnification = 1
  • No advanced settings enabled
Returns

A GameConfig instance

val mat4: mat4

noRender Convenience value, alias for SceneUpdateFragment.empty

noRender Convenience value, alias for SceneUpdateFragment.empty

Returns

An Empty SceneUpdateFragment

val vec2: vec2
val vec3: vec3
val vec4: vec4