/spriter

simple 2d sprites engine

Primary LanguageJava

Spriter

A simple 2d sprites engine

Maven

    <repositories>
        <repository>
            <id>drxaos</id>
            <name>mvn-repo</name>
            <url>https://github.com/drxaos/mvn-repo/raw/master/</url>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>com.github.drxaos</groupId>
            <artifactId>spriter</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>

Example

public class Simple {
    public static void main(String[] args) throws Exception {
        Spriter spriter = new Spriter("Simple");

        Spriter.Sprite sprite = spriter.createSprite(
                ImageIO.read(Simple.class.getResource("/point.png")), // load image
                256 / 2, 256 / 2,   // sprite center
                0.2                 // object size
        );

        Spriter.Control control = spriter.getControl();

        while (true) {
            sprite.setPos(control.getMousePos());
            Thread.sleep(30);
        }
    }
}

CustomUI

Screenshots

CustomUI

CustomUI

CustomUI