Documentation ¶
Index ¶
- Constants
- Variables
- func SpritesToImage(sprites [40][8][8]types.RGB, w, h int) (*image.NRGBA, error)
- func TilemapToImage(img [256][256]types.RGB, caption string) (*image.NRGBA, error)
- func TilesToImage(tiles [512][8][8]types.RGB, w, h int) (*image.NRGBA, error)
- func ToMemoryAddress(s string) (types.Word, error)
- type DebugCommandHandler
- type DebugOptions
- type GomeboyColor
Constants ¶
View Source
const FRAME_CYCLES = 70224
View Source
const TITLE string = "gomeboycolor"
Variables ¶
View Source
var BOOTROM []byte = []byte{}/* 256 elements not displayed */
View Source
var VERSION string
Functions ¶
func SpritesToImage ¶
IMAGE DUMP FUNCTIONS - SLOPPY CODE!!!!
func TilemapToImage ¶
Types ¶
type DebugCommandHandler ¶
type DebugCommandHandler func(*GomeboyColor, ...string)
type DebugOptions ¶
type DebugOptions struct {
// contains filtered or unexported fields
}
func (*DebugOptions) AddDebugFunc ¶
func (g *DebugOptions) AddDebugFunc(command string, description string, f DebugCommandHandler)
func (*DebugOptions) Init ¶
func (g *DebugOptions) Init(cpuDumpOnStep bool)
type GomeboyColor ¶
type GomeboyColor struct {
// contains filtered or unexported fields
}
func Init ¶
func Init(cart *cartridge.Cartridge, saveStore saves.Store, conf *config.Config, ioHandler inputoutput.IOHandler) (*GomeboyColor, error)
func (*GomeboyColor) Reset ¶
func (gbc *GomeboyColor) Reset()
func (*GomeboyColor) Run ¶
func (gbc *GomeboyColor) Run(frameRunnerWrapper func(func()))
func (*GomeboyColor) RunIO ¶
func (gbc *GomeboyColor) RunIO()
func (*GomeboyColor) Step ¶
func (gbc *GomeboyColor) Step()
Click to show internal directories.
Click to hide internal directories.