Handles rendering the game using 2D Context.
Creates an instance of the Renderer.
runtime—RuntimeThe currentRuntimeinstance.
The display's character width.
The display's character height.
Validates a renderer configuration file and throws an error if it is invalid.
config—ObjectThe config object to validate.
Clears the screen.
Draws an array of frames to the screen.
frames—Array<Frame>The frames to draw.
Determines the frame index of a pixel coordinate.
x—numberThe x-value of the coordinate.y—numberThe y-value of the coordinate.
The index of that coordinate in a frame.
Converts a frame index into x and y coordinates.
index—numberThe frame index.
A coordinate array.
Compiles several frames. The last frame provided is on top.
...frames—FrameThe frames to compile.
The compiled frames.