fuses/core
library
Mixins
-
Fuse
-
Adds a fuse method to a Flame component. While inside this method,
behavior may be composed by calling any number of fuse* functions.
Functions
-
fuseCamera()
→ CameraComponent
-
Returns the current Flame game's camera.
-
fuseComponent<C extends Fuse>()
→ C
-
Returns the current Flame component.
-
fuseGame<G extends FlameGame<World>>()
→ G
-
Returns the current Flame game.
-
fuseRemove(FuseRemoveFn fn)
→ void
-
Calls function
fn
when the current Flame component is removed.
-
fuseResize(FuseResizeFn fn)
→ void
-
Calls function
fn
when the current Flame game is resized.
-
fuseUpdate(FuseUpdateFn fn)
→ void
-
Calls function
fn
on every Flame game update.
-
fuseWorld()
→ World
-
Returns the current Flame game's world.