Class ParticleRenderer
java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.particle.ParticleRenderer
- All Implemented Interfaces:
Destructible,Printable,ApplicationContext,ApplicationProvider,ComponentsContext,ComponentsProvider,EntityContext,EntityProvider,SceneContext,SceneProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanbooleanWhether to animate the sprite of this particle depending on its remaining lifetime.static final booleanbooleanstatic final intstatic final intintAmount of frames in the texture of this particle.intInitial frame of the sprite of this particle.floatfloatRemaining life of this particle, in seconds.Current velocity vector. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.core.component.Component
destroy, equals, getApplication, getEntity, getName, getScene, hashCode, onEntityChange, setActive, setEntity, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.prozilla.pine.core.ApplicationProvider
getAudioDevice, getConfig, getInput, getLocalStorage, getLogger, getModManager, getRenderer, getTimer, getTracker, getWindowMethods inherited from interface dev.prozilla.pine.core.component.ComponentsProvider
getComponent, getComponentInParent, getComponentInParent, getComponents, getComponentsInChildrenMethods inherited from interface dev.prozilla.pine.core.entity.EntityContext
isDescendantOfMethods inherited from interface dev.prozilla.pine.core.entity.EntityProvider
getChild, getChildWithTag, getFirstChild, getLastChild, getParentWithTag, getTransform, isDescendantOfMethods inherited from interface dev.prozilla.pine.core.scene.SceneProvider
getCameraData, getWorld
-
Field Details
-
initialLifetime
public float initialLifetime -
lifetime
public float lifetimeRemaining life of this particle, in seconds. -
velocity
Current velocity vector. -
applyTimeScale
public boolean applyTimeScale -
frameCount
public int frameCountAmount of frames in the texture of this particle. -
animateSprite
public boolean animateSpriteWhether to animate the sprite of this particle depending on its remaining lifetime. -
initialFrame
public int initialFrameInitial frame of the sprite of this particle. -
scaleAnimation
-
colorAnimation
-
DEFAULT_FRAME_COUNT
public static final int DEFAULT_FRAME_COUNT- See Also:
-
ANIMATE_SPRITE_DEFAULT
public static final boolean ANIMATE_SPRITE_DEFAULT- See Also:
-
DEFAULT_INITIAL_FRAME
public static final int DEFAULT_INITIAL_FRAME- See Also:
-
APPLY_TIME_SCALE_DEFAULT
public static final boolean APPLY_TIME_SCALE_DEFAULT- See Also:
-
-
Constructor Details
-
ParticleRenderer
public ParticleRenderer(float lifetime)
-
-
Method Details
-
setLifetime
public void setLifetime(float lifetime) -
kill
public void kill()
-