Class ParticlePrefab


public class ParticlePrefab extends SpritePrefab
  • Field Details

  • Constructor Details

  • Method Details

    • setColor

      public void setColor(Color color)
      Overrides:
      setColor in class SpritePrefab
    • setColor

      public void setColor(ColorProperty color)
    • setColorAlphaAnimation

      public void setColorAlphaAnimation(Color base, EasingFunction easingFunction)
      Adds an animation for the alpha value of the particle's color, going from 1f to 0f.
    • setColorAlphaAnimation

      public void setColorAlphaAnimation(Color base, FloatProperty alphaStart, FloatProperty alphaEnd)
      Adds a linear animation for the alpha value of the particle's color.
    • setColorAlphaAnimation

      public void setColorAlphaAnimation(Color base, FloatProperty alphaStart, FloatProperty alphaEnd, EasingFunction easingFunction)
      Adds an animation for the alpha value of the particle's color.
    • setColorAnimation

      public void setColorAnimation(ColorProperty start, ColorProperty end)
      Adds a linear animation for the color of the particle.
    • setColorAnimation

      public void setColorAnimation(ColorProperty start, ColorProperty end, EasingFunction easingFunction)
      Adds an animation for the color of the particle.
    • setScale

      public void setScale(Vector2f scale)
      Overrides:
      setScale in class SpritePrefab
    • setScale

      public void setScale(FloatProperty scale)
    • setScaleAnimation

      public void setScaleAnimation(FloatProperty start, FloatProperty end)
      Adds a linear animation for the scale of the particle.
    • setScaleAnimation

      public void setScaleAnimation(FloatProperty start, FloatProperty end, EasingFunction easingFunction)
      Adds an animation for the scale of the particle.
    • setLifetime

      public void setLifetime(FloatProperty lifetime)
    • setVelocity

      public void setVelocity(Vector2fProperty velocity)
    • setFrameCount

      public void setFrameCount(int frameCount)
    • setFrame

      public void setFrame(IntProperty frame)
    • setAnimateSprite

      public void setAnimateSprite(boolean animateSprite)
    • setInitialFrame

      public void setInitialFrame(IntProperty initialFrame)
    • setApplyTimeScale

      public void setApplyTimeScale(boolean applyTimeScale)
    • apply

      protected void apply(Entity entity)
      Description copied from class: Prefab
      Adds this prefab's predefined components to a given entity and copies values from this prefab.
      Overrides:
      apply in class SpritePrefab