Klasse LoopingAnimation

java.lang.Object
com.sunworld.io.resources.textures.LoopingAnimation
Alle implementierten Schnittstellen:
Animation, Texture

public class LoopingAnimation extends Object implements Animation
Eine Implementation von Textur, die je nach Zeit ein anderes Bild zurückgibt und so eine Animation entstehen lässt. WICHTIG: Nach dem letzten Frame folgt wieder das erste, die Animation läuft also nicht hin und zurück.
  • Felddetails

    • frames

      private final Texture[] frames
    • updateTimeMillis

      private final int updateTimeMillis
    • updateTimer

      private final Timer updateTimer
    • framePointer

      private int framePointer
  • Konstruktordetails

    • LoopingAnimation

      public LoopingAnimation(int fps, Texture... frames)
      Erstellt eine Animation. Dazu werden die Frames in Form von Texturen angegeben und die FPS der Animation als int.
  • Methodendetails