FastJ 1.5.1 has been released, with 80 new commits since FastJ 1.5.0. This version of FastJ contains bug fixes, new features, new examples, and more! Read on to find out what's new.
New Example Programs#
2 new example programs have been added to FastJ: Simple Audio and Behaviors! Check them out below:
- FastJ Audio -- Simple Audio Playing/Loading in FastJ
- Behaviors -- Behaviors in FastJ
Replace Issue Templates with Issue Forms#
All of FastJ's issue templates have been replaced with GitHub's issue forms. Check them out here!
Audio from Java URLs#
Loading/Playing Audio with FastJ can now be done using java.net.URL, enabling easy use of sound files contained in a jarfile through the ClassLoader.
Added Missing Keyboard Improvements Section to 1.5.0#
It seems that I forgot to cover the improvements made to FastJ's keyboard system in the 1.5.0 release. Sorry! Go check it out to see what's up.
General Changelog#
Additions#
- Added explicit methods to manage behaviors/keys pressed in
LogicManager initBehaviors-- requests that theLogicManagerinitialize its behaviorsupdateBehaviors-- requests that theLogicManagerupdate its behaviorsprocessKeysDown-- requests that theLogicManagerprocess keys pressed downBehaviorManager.destroyListenerListfor destroying the behaviors of anyBehaviorHandler's behavior listener listBehaviorHandler.destroyBehaviorListenersfor calling theBehaviorManager's behavior destroying method
Breaking Changes#
- (by @Sammie156, PR #72) Renamed
SupportedFileFormatstoSupportedModelFormats SceneManagerno longer handles input at the update() stage. All input dealt with inSceneManagerwill be called beforerender()SceneManagerbehavior initialization now occurs after background adjustments and scene initialization
Bug Fixes#
- (#96) Fixed issue where
LogicManagerdid not initialize, update, or destroy behaviors - Fixed issue where
LogicManagerdid not act on keys pressed down - (#99) Added behavior destroy calls to both
SimpleManagerandSceneclasses'resetmethods
Other Changes#
- (by @SaadRehmanCS, PR #71) include default case in
AudioEventListener.AudioEventProcessorswitch statements which throwsIllegalStateException - (by @Sammie156, PR #80) removed unnecessary casts in
Gradient.javaandPoint.java - (by @Sammie156, PR #84) removed more unnecessary casts in
Point.javaandMemoryAudioPlayer.java - (internal) Replaced
update/init/renderCurrentScenemethods withsafeUpdate/Init/Rendermethods, respectively - (internal) Reorganize unit tests to match main package structure
- (internal) Added unit tests to cover loading/playing audio with URLs
- (internal) Added unit tests to cover unloading multiple audio files at once
