struct

GB::Sprite

Inherits Struct < Value < Object

Constructors

new(y : UInt8, x : UInt8, tile_num : UInt8, attributes : UInt8)
Source
new(oam : Bytes, oam_idx : UInt8)
Source

Instance methods

bank_num
Source
bytes(line : Int, sprite_height = 8) : Tuple(UInt16, UInt16)

behavior is undefined if sprite is not on given line

Source
cgb_palette_number
Source
dmg_palette_number
Source
oam_idx
Source
on_line(line : Int, sprite_height = 8) : Bool
Source
priority
Source
to_s(io : IO)

Same as #inspect(io).

Source
visible?
Source
x_flip?
Source
y_flip?
Source