The root level .gitignore file already works for all sub-repositories, so they are all actually unnecessary.
This PR leaves only the gitignore at the root of the repo, removing all others.
This PR adds the SpriteFont class, which encapsulates reusable information about a sprite font. Text renderers / text formatters can be created based on this SpriteFont.
In addition:
GlyphInfo removed (was internal), and GlyphData deprecated -- instead, there is now a consolidated Glyph class;
Sprite font now supports extended Unicode characters and ligatures (when a combination of letters is represented as a single glyph)
This feature can also be used to define simple name substitutions. For example, you can declare that "[gp]" or "&gp;" would represent a gold coin icon;
Sprite font supports variable-width fonts;
Sprite font supports glyphs where the source rect is different from the logical rect;
Sprite font renderer can now control the color of the text rendered.
This PR adds two updates.
It updates the flame_forge2d to latest version i.e on pub.dev in examples and padracing projects.
Adds a bouncing ball example in the collision detection examples demonstrating a simple example of collision and bouncing of a ball from the walls around it.
Pub gives a warning when using ^3.0.0 since that also implies less than 4.0.0, which your Flutter dependency shouldn't be.
With >= it is an open range instead.
This PR adds [SpriteFontRenderer], which is a new implementation of [TextRenderer], allowing to render text based on fonts embedded into a spritesheet.
See the T-Rex game example, where the score is now rendered based on a spritesheet font.
(Also added highscore tracking for the TRex game).
* Add onFinishCallback as optional parameter
* Rename onFinishCallback to onComplete
* Add void return for onComplete
* Add deprecated getter and setter for onFinishCallback
* Use named onComplete parameter
* Add version in which onFinishCallback will be removed