class ScanlinePPU

Defined in:

cryboy/scanline_ppu.cr

Instance Method Summary

Instance methods inherited from class PPU

[](index : Int) : UInt8 [], []=(index : Int, value : UInt8) : Nil []=, bg_display? : Bool bg_display?, bg_tile_map : UInt8 bg_tile_map, bg_window_tile_data : UInt8 bg_window_tile_data, coincidence_flag : Bool coincidence_flag, coincidence_flag=(on : Bool) : Nil coincidence_flag=, coincidence_interrupt_enabled : Bool coincidence_interrupt_enabled, copy_hdma_block(block_number : Int) : Nil copy_hdma_block, handle_stat_interrupt : Nil handle_stat_interrupt, hblank_interrupt_enabled : Bool hblank_interrupt_enabled, lcd_enabled? : Bool lcd_enabled?, mode_flag : UInt8 mode_flag, mode_flag=(mode : UInt8) mode_flag=, oam_interrupt_enabled : Bool oam_interrupt_enabled, palette_from_array(palette_array : Array(UInt8)) : UInt8 palette_from_array, palette_to_array(palette : UInt8) : Array(UInt8) palette_to_array, skip_boot : Nil skip_boot, sprite_enabled? : Bool sprite_enabled?, sprite_height sprite_height, start_hdma(value : UInt8) : Nil start_hdma, step_hdma : Nil step_hdma, vblank_interrupt_enabled : Bool vblank_interrupt_enabled, window_enabled? : Bool window_enabled?, window_tile_map : UInt8 window_tile_map, write_png : Nil write_png

Constructor methods inherited from class PPU

new(gb : Motherboard) new

Instance Method Detail

def get_sprites : Array(Sprite) #

get first 10 sprites on scanline, ordered the order dictates how sprites should render, with the first ones on the bottom


[View source]
def scanline #

[View source]
def tick(cycles : Int) : Nil #

tick ppu forward by specified number of cycles


[View source]