SceneUpdateFragment

final case
class SceneUpdateFragment(layers: List[Layer], lights: List[Light], audio: SceneAudio, blendMaterial: Option[BlendMaterial], cloneBlanks: List[CloneBlank], camera: Option[Camera])

A description of what the engine should next present to the player.

SceneUpdateFragments are predicatably composable, so you can make a scene in pieces and then combine them all at the end.

Note that a SceneUpdateFragment represents what is to happen next. It is not a diff. If you remove a sprite from the definition it will not be drawn.

Value Params
audio

Background audio.

blendMaterial

Optional blend material that describes how to render the scene to the screen.

camera

Scene level camera enabling pan and zoom.

cloneBlanks

A list of elements that will be referenced by clones in the main layers.

layers

The layers game elements are placed on.

lights

Dynamic lights.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product