All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.mostlyoriginal.api.component.graphics.Anim Maven / Gradle / Ivy

package net.mostlyoriginal.api.component.graphics;

import com.artemis.Component;

/**
 * Animations.
 *
 * @author Daan van Yperen
 */
public class Anim extends Component {

    public boolean flippedX; // flip animation, should not affect rotation.

    /** Scale of animation */
    /* @Todo separate into own component. */
    public float scale = 1;

    /** Playback speed factor. */
    public float speed = 1;
    /** Animation progression */
    public float age = 0;
    /** Loop animation when the end has been reached. */
    public boolean loop = true;

    /** Animation identifier. */
    /** write asset resolver */
    public String id;
    // @todo please oh please clean this up!
    public String id2;

    public Anim(String id) {
        this.id = id;
    }

    public Anim() {
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy