An Operations/Actions mini-DSL for artemis-odb entities, built on top of libgdx. Inspired by similar Actions API:s, especially that of libgdx.
Provides a core collection of operations, and a simple-to-use framework for building custom, project-specific operations.
Code ends up looking something like:
Entity e = ...
sequence(
parallel(
sequence(
moveTo(xy(x, y)), // project-specific
moveBy(xy(0, type.size)), // project-specific
moveBy(xy(0, -type.size), seconds(.6f), bounceOut)
),
sequence(
sizeTo(xy(-1, 0)), // project-specific
delay(seconds(.2f)),
sizeTo(xy(-1, type.size), seconds(.4f), swing)
)
),
sendEvent(POPUP_ANIMATION_DONE) // project-specific
).register(e);
- Actions for entities, tied into artemis-odb's native lifecycle.
- Custom operations are easy to write.
- GC friendly: no unnecessary allocations, automatic pooling.
- Full serialization support, save/load mid-operation using the
artemis-json-libgdx backend.
- Serialized operations can also act as "attached scripts", automatically triggered on entity creation.
No published artifacts yet - until released, install from source before referencing in project:
mvn clean install
<dependency>
<groupId>se.feomedia.orion</groupId>
<artifactId>artemis-odb-orion</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
See weave automation and module overview
dependencies { compile "se.feomedia.orion:artemis-odb-orion:0.1.0-SNAPSHOT" }
Artemis-odb-orion is licensed under the Apache 2 License, meaning you can use it free of charge, without strings attached in commercial and non-commercial projects.