accmltr / scala-games

A game engine for writing games in Scala.
MIT License
4 stars 0 forks source link

Add ImageSection, QuadrantSprite & NinePatchSprite #58

Closed accmltr closed 8 months ago

accmltr commented 9 months ago

ImageSection defines a section of an Image to be seen used where an Image is expected.

Quadrant sprite takes an image that will be mirrored in all quadrants of the Cartesian Coordinate system. A corner size is given, and the edges and center will automatically be repeated to fill any rectangular size set for the object - similar to NinePatchRect in Godot.

Finally add NinePatchSprite, the same as in Godot.