FlipBookPage
class FlipBookPage(val withAppearance: WithAppearance?, val seconds: Float, val tick: (Actor, Float) -> Unit? = null, val progress: (Actor, Float) -> Unit? = null, val onPageStarted: (Actor) -> Unit? = null, val onPageFinished: (Actor) -> Unit? = null)
A page within a FlipBook. It has an appearance (withAppearance) and a duration in seconds.
Constructors
Properties
Link copied to clipboard
We can optionally perform an arbitrary action at the end of this page. e.g. play a sound, change attributes of the actor or its behaviour, such as its speed, direction...
Link copied to clipboard
Link copied to clipboard
Q. Each page needs an Appearance, so why are we using WithAppearance instead?