Release v4.28.0#23
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve beginner-friendliness of the library.
KeyCodeenum: Replaced thestatic final intconstants class with a proper Java enum. Key constants now have short, readable names (KeyCode.SPACE,KeyCode.UP,KeyCode.A, etc.) with full IDE auto-complete support. ThewhenKeyPressed(KeyCode),whenKeyReleased(KeyCode), andisKeyPressed(KeyCode)methods now acceptKeyCodedirectly.Direction constants: Added
Sprite.DIRECTION_RIGHT,Sprite.DIRECTION_UP,Sprite.DIRECTION_LEFT, andSprite.DIRECTION_DOWNas named constants forsetDirection().debug()method: Addeddebug(Object... values)toSprite,Stage, andWindow. Prints a prefixed message to stdout (e.g.[CatSprite] x = 100.0) only when debug mode is enabled (F12 orsetDebug(true)).Better asset error messages: When an image, sound, or font file cannot be loaded, the error now shows the resolved absolute path, checks whether the parent folder exists, lists files in the same folder, and suggests a "did you mean?" correction for case mismatches.
More helpful runtime warnings: Methods that previously failed silently now print a clear warning with a tip. Affected cases include calling
broadcast(), layer methods, or visual methods (setTint,setTransparency,setHeight,setWidth) before a sprite is on a stage or has a costume;switchShader()with an unknown name;addTimer("default"); andsetTextureSampling()with an invalid value.Suppress Processing noise: Internal Processing and JOGL messages (window resize notices, missing-file messages, X11 shutdown output) are now filtered from the console so beginners only see output relevant to their code.
Fix debug mode font size: Enabling debug mode no longer changes the font size of sprites that display text.