struct Sprite
- Sprite
- Struct
- Value
- Object
Defined in:
cryboy/ppu.crConstructors
Instance Method Summary
- #bank_num : UInt8
-
#bytes(line : Int, sprite_height = 8) : Tuple(UInt16, UInt16)
behavior is undefined if sprite is not on given line
- #cgb_palette_number : UInt8
- #dmg_palette_number : UInt8
- #oam_idx : UInt8
- #on_line(line : Int, sprite_height = 8) : Bool
- #priority : UInt8
-
#to_s(io : IO)
Same as
#inspect(io)
. - #visible? : Bool
- #x : UInt8
- #x_flip? : Bool
- #y : UInt8
- #y_flip? : Bool
Constructor Detail
Instance Method Detail
def bytes(line : Int, sprite_height = 8) : Tuple(UInt16, UInt16)
#
behavior is undefined if sprite is not on given line