Default ctor
Adds a sprite to the layer.
Checks all sprites for whether they're on screen or not. Called every time the layer is being scrolled.
Checks whether a sprite would be displayed on the screen, then updates the display list. Returns true if it's on screen.
Clears all sprite from the layer.
Searches the DisplayListItem by priority and returns it. Can be used for external use without any safety issues.
Searches the DisplayListItem by priority and returns it. Intended for internal use, as it returns it as a reference value.
Returns the selected paletteID of the sprite.
Gets the sprite's current horizontal scale value
Gets the sprite's current vertical scale value
Returns the displayed portion of the sprite.
Moves a sprite to the given position.
Moves a sprite by the given amount.
Relative scrolling. Positive values scrolls the layer left and up, negative values scrolls the layer down and right.
Removes a sprite from both displaylists by priority.
Replaces the bitmap of the given sprite.
Ditto with move
Ditto with move
Scales sprite horizontally. Returns the new size, or -1 if the scaling value is invalid, or -2 if spriteID not found.
Scales sprite vertically. Returns the new size, or -1 if the scaling value is invalid, or -2 if spriteID not found.
Absolute scrolling.
Sets the paletteID of the sprite. Returns the new ID, which is truncated to the possible values with a simple binary and operation Palette must exist in the parent Raster, otherwise AccessError might happen
Writes the displayed portion of the sprite. Returns the new slice, if invalid (greater than the bitmap, etc.) returns Coordinate.init.
Sets the rendering function for the sprite (defaults to the layer's rendering function)
Helps to determine the displaying properties and order of sprites.
All sprites of this layer
Sprites that are being displayed
Local buffer for scaling
General-purpose sprite controller and renderer.