.Objects - red-the-random-dev/DotRPG GitHub Wiki

DotRPG.Objects is library designed for implementation of basic game components, such as frames, sprite controllers and text objects.

Frame

Frame is a subroutine dedicated to certain location in the game, like a room or world chunk. Like Game object of MonoGame, Frame's runtime is shared between Update() and Draw() methods.

Note that Frames require resource heap and event hash set to be created. Example can be seen in _Example module.

Sprite controller

Used for animation and sprite aligning. Draws a picture from Texture2D object.

Text object

Text line with scrolling feature and set of aligning modes, such as anchoring to center, top left, center left, top center and more. Scrolled with Update() method.