2020.2021-beta6
Pre-release
Pre-release
github-actions
released this
05 Apr 13:07
·
413 commits
to master
since this release
Changes in this release
Configuration
Refactor
- Removed
getLeftX()
,getRightX()
,getTopY()
andgetBottomY()
from theBounded
interface. These properties can
be accessed through thegetBoundingBox()
method. - Removed the undoUpdate behaviour that undid the last update if the speed of a
YaegerEntity
was set to 0. It led to
unpredictable behaviour for corner cases. - Removed the
SideAwareCollided
, which became absolute with the introduction ofCompositeEntity
. - Activating the Debugger should now be done through a commandline argument (
--showDebug
) instead of pressing the F1
-button.
Features
- Added extra methods for using the
Direction
enumeration directly instead of callengetValue()
(#135). - Added the method
getCurrentFrameIndex()
to aSpriteEntity
(#141). - Added a new interface
Newtonian
, which add gravitational pull and friction to Dynamic Entities (#89). - Added the run argument
--showBB
that makes Yaeger show the bounding box of eachYaegerEntity
that implements the
interfaceCollided
orCollided
. This should ease debugging collisions (#20). - All children of YaegerEntity can now be used for a TileMap. Previously, this was only possible with children of
SpriteEntity (#150). - It is now possible to add a third parameter while adding Entities to a TileMap. This parameter, of type
EntityConfiguration
will then be passed to the constructor of the Entity (#159). - SpriteEntities now accept sprites that contain a 2D map of images. For such sprites, it is now also possible the
usesetAutoCycle(long interval, int row)
, which enables auto cycling through a specific row (#62). - A new constructor has been added to SpriteEntities, which does not require a
Size
. For such entities the original
dimensions are used (#158). - Added several methods to Dynamic Entities that can be used to alter their motion:
getSpeedInDirection(Direction)
andgetSpeedInDirection(double)
(#171)invertSpeedInDirection(Direction)
andinvertSpeedInDirection(double)
(#173)nullifySpeedInDirection(Direction)
andnullifySpeedInDirection(double)
(#163)maximizeMotionForDirection(Direction, double)
andmaximizeMotionForDirection(double, double)
(#161)
Bugfixes
- It is now possible to first set the direction of an Entity and then its speed (#41).
- Extra interface haven been removed from the
Collided
andCollider
. To gain access to their properties (e.g. speed,
direction), an explicit cast is now required (#148). - Calculating the angle between an Entity and a CompositeEntity now calculates the correct angle (#160).