Skip to content

Changelog

v2.6.1 (04.10.2020)

Fixes:

  • [inspector] Provide execution context for inspector-invoked methods (available since inspector v1.0.4).

v2.6.0 (15.09.2020)

This release introduces the Backend interface for implementing different graphical backends, and its two implementations for LWJGL (3) and LWJGL2. Framework module now requires one backend implementation available in the classpath through Java’s ServiceLoader facility.

Changes:

  • [core] Allow using different graphic backends by the Backend interface.
  • [backends] Implement backends for LWJGL (3) and older LWJGL2.
  • [framework] Use backend loaded through Java’s ServiceLoader when instantiating the game.
  • Update LibGDX version to 1.9.11.

v2.5.1 (02.11.2019)

Enhancements:

  • [core] Add simplified keyboard handlers for single keys.
  • [core] Documentation improvements for actor’s getPosX and getPosY methods.

v2.5.0 (29.09.2019)

New features:

  • [core] Add single-parameter Animation(String) constructor that automatically sets dimensions of single-frame animations.
  • [core] Support passing Consumer<Actor> to Invoke action constructor.
  • [core] Support game-level input listeners through Game#getInput() method.
  • [core] Add parameter-less predicates for While and When actions.

Enhancements:

  • [framework] Use animation to rotate Player when it moves.

Changes:

  • [core] Rename method Action#scheduleOn(Actor) to Action#scheduleFor(Actor). The method accepting scene is still scheduleOn(Scene).
  • [core] Renamed Game methods getScene(String) to getSceneByName(String) and setScene(String) to setCurrentSceneByName(String) to better describe their function.
  • [core] Cancel actions of an actor when it is removed from a scene.
  • [core] Replace custom ActionPredicate with built-in Predicate class.
  • The library now requires Java 11 and up.

Fixes:

  • [framework] Fix Rotate action.

Internal changes:

  • [core, framework] Rewritten in Java, preserved API.
  • Update LibGDX version to 1.9.10.

v2.4.3 (13.12.2018)

Fixes:

  • [core] Fix for scene initialization in the World class.

v2.4.2 (25.11.2018)

Enhancements:

  • [core] Provide cancelActions() method on Scene

Fixes:

  • [core] Fix for tiles outside map
  • [framework] Fix Rotate action

v2.4.1 (18.11.2018)

Fixes:

  • Fixed an issue with detecting intersects with walls.

v2.4.0 (11.11.2018)

New features:

  • [core] Highlight actor at the top of container in ActorContainerPanel.

Changes:

  • [core] Add type parameters for actors to Invoke and Wait actions.
  • [core] Schedule new actions to be executed before older ones in World.
  • [framework] Rename Move action to Translate.
  • [framework] Add type parameters to Rotate and Translate actions.

Fixes:

  • [core] Fix processing of BACKSPACE and DELETE keys in Input.

v2.3.1 (4.11.2018)

Fixes:

  • Expose overloaded constructor for InspectableScene to Java.

v2.3.0 (1.11.2018)

Changes:

  • Varargs method setActorRenderOrder() changed to one accepting list of classes.
  • Extracted interfaces for Overlay and Game.
  • Changes in application construction.

Fixes:

  • Fixed TemporalAction duration check.
  • Better toString() methods for Animation and AbstractActor.

Deprecations:

  • Varargs version of setActorRenderOrder() is now deprecated as it causes unchecked operation warning. It is superseeded by method accepting list of classes.

v2.2.0 (21.10.2018)

New features:

  • Methods Scene.scheduleAction() and Action.scheduleOn() now return Disposable object that unschedules the action when its dispose() method is called.
  • Actor rendering order can be configured with method setActorRenderOrder() on scene.
  • Animations expose index of currently shown frame and total number of frames.

Changes:

  • Updated documentation.
  • Updated training map in Framework module.

v2.1.0 (14.10.2018)

New features:

  • [core] Map tile objects.
  • [core] Overlay drawings with configurable display time.
  • [framework] Loop action that repeats wrapped action endlessly.

Changes:

  • [core] Actor‘s scene is now nullable.
  • [core] Scene setter on Actor replaced with addedToScene() and removedFromScene() methods.
  • [framework] Player has energy.

Fixes:

  • [framework] AbstractAction moved to correct package.
  • [inspector] Inspector updated to 1.0.2 (fixes parameter order in operation invocation).

v2.0.2 (07.10.2018)

Fixes:

  • Game now closes correctly and does not force call to System.exit(-1) (from LibGDX).

v2.0.1 (04.10.2018)

Fixes:

  • Backend changed to LWJGL2 to prevent issues on Mac OS.

v2.0.0 (30.09.2018)

  • Initial version of GameLib built on top of LibGDX.