Skip to content

FEOMedia/artemis-odb-orion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Join the odb chat at https://gitter.im/junkdog/artemis-odb

artemis-odb-orion

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);

Features

  • 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.

Usage

No published artifacts yet - until released, install from source before referencing in project:

mvn clean install

Maven

<dependency>
	<groupId>se.feomedia.orion</groupId>
	<artifactId>artemis-odb-orion</artifactId>
	<version>0.1.0-SNAPSHOT</version>
</dependency>

See weave automation and module overview

Gradle

  dependencies { compile "se.feomedia.orion:artemis-odb-orion:0.1.0-SNAPSHOT" }

License

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.

About

Operations mini-DSL specialized to deal with artemis-odb entities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages