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
andgetPosY
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>
toInvoke
action constructor. - [core] Support game-level input listeners through
Game#getInput()
method. - [core] Add parameter-less predicates for
While
andWhen
actions.
Enhancements:
- [framework] Use animation to rotate
Player
when it moves.
Changes:
- [core] Rename method
Action#scheduleOn(Actor)
toAction#scheduleFor(Actor)
. The method accepting scene is stillscheduleOn(Scene)
. - [core] Renamed
Game
methodsgetScene(String)
togetSceneByName(String)
andsetScene(String)
tosetCurrentSceneByName(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-inPredicate
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 onScene
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
andWait
actions. - [core] Schedule new actions to be executed before older ones in
World
. - [framework] Rename
Move
action toTranslate
. - [framework] Add type parameters to
Rotate
andTranslate
actions.
Fixes:
- [core] Fix processing of
BACKSPACE
andDELETE
keys inInput
.
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
andGame
. - Changes in application construction.
Fixes:
- Fixed
TemporalAction
duration check. - Better
toString()
methods forAnimation
andAbstractActor
.
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()
andAction.scheduleOn()
now returnDisposable
object that unschedules the action when itsdispose()
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
‘sscene
is now nullable. - [core] Scene setter on
Actor
replaced withaddedToScene()
andremovedFromScene()
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.