Class ParticleWipe
java.lang.Object
nl.colorize.multimedialib.scene.effect.ParticleWipe
- All Implemented Interfaces:
Scene
Uses a particle wipe effect that can be used for screen transitions. There
are two modes: one where the particles slowly obscure the screen, and one
where the particles slowly reveal the screen. Both effects would typically
be used on either side of the transition.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParticleWipe(Image particleImage, ColorRGB color, float duration, boolean reverse) Creates a new wipe transition based on the specified particle image. -
Method Summary
Modifier and TypeMethodDescriptionvoidend(SceneContext context) Clean-up logic that is performed every time the scene ends.booleanIndicates the scene has been completed and no longer wishes to receive frame updates.voidstart(SceneContext context) Initialization logic that should be performed when the scene is started.voidupdate(SceneContext context, float deltaTime) Called during every frame update for as long as the scene is active.
-
Field Details
-
DIAMOND
public static final nl.colorize.util.ResourceFile DIAMOND -
CIRCLE
public static final nl.colorize.util.ResourceFile CIRCLE
-
-
Constructor Details
-
ParticleWipe
Creates a new wipe transition based on the specified particle image. Ifreverseis true, the transition will start fully obscured and will then play backwards, slowly revealing the stage.
-
-
Method Details
-
start
Description copied from interface:SceneInitialization logic that should be performed when the scene is started. Note that this method is called *every* time the scene is started, not just the first time.This method is optional, the default implementation does nothing.
-
update
Description copied from interface:SceneCalled during every frame update for as long as the scene is active.deltaTimeindicates the elapsed time since the last frame, in seconds. -
isCompleted
public boolean isCompleted()Description copied from interface:SceneIndicates the scene has been completed and no longer wishes to receive frame updates.If this scene is the currently active scene, it might not actually end until a new scene is requested.
If this scene is a completed sub-scene, meaning there is a parent scene which is still active, this sub-scene will end after the current frame.
- Specified by:
isCompletedin interfaceScene
-
end
Description copied from interface:SceneClean-up logic that is performed every time the scene ends.This method is optional, the default implementation does nothing.
-
getContainer
-