struct GB::Sprite

Defined in:

crab/gb/ppu.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(y : UInt8, x : UInt8, tile_num : UInt8, attributes : UInt8) #

[View source]
def self.new(oam : Bytes, oam_idx : UInt8) #

[View source]

Instance Method Detail

def bank_num : UInt8 #

[View source]
def bytes(line : Int, sprite_height = 8) : Tuple(UInt16, UInt16) #

behavior is undefined if sprite is not on given line


[View source]
def cgb_palette_number : UInt8 #

[View source]
def dmg_palette_number : UInt8 #

[View source]
def oam_idx : UInt8 #

[View source]
def on_line(line : Int, sprite_height = 8) : Bool #

[View source]
def priority : UInt8 #

[View source]
def to_s(io : IO) #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def visible? : Bool #

[View source]
def x : UInt8 #

[View source]
def x_flip? : Bool #

[View source]
def y : UInt8 #

[View source]
def y_flip? : Bool #

[View source]