Skip to content

Fluid Entity Introduction

bryanbrunt edited this page Jan 11, 2019 · 5 revisions

Introduction

The Fluid Entity API provides a convenient way to assemble and interact with your entities, making code less verbose, improving readability.

  E(entityId)
      .tag("boss")
      .groups("enemy", "treasure")
      .pos(10,10)
      .animSprite("junkdog")
      .animLayer(1000)
      .invisible(true);

When to use

  • You want to rapidly create prototypes (shotgun development) or jam games.

When not to use

  • Your game requires worlds in different threads.
  • Your game has the highest performance requirements.
  • You prefer proven technology (This API is brand new).
  • You do not use Gradle or Maven.

Performance

Performance is untested as of this writing, but should be comparable to using ComponentMapper directly.

Limitations

In this version, when updating components a quick maven/gradle compile is required.

Clone this wiki locally