chip8

package
v0.0.0-...-202d54a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chip8

type Chip8 struct {
	// contains filtered or unexported fields
}

func NewChip8

func NewChip8(rom io.Reader) (*Chip8, error)

func (*Chip8) Draw

func (c *Chip8) Draw(screen *ebiten.Image)

func (*Chip8) Layout

func (c *Chip8) Layout(_, _ int) (int, int)

func (*Chip8) PrintRegisters

func (c *Chip8) PrintRegisters()

func (*Chip8) Start

func (c *Chip8) Start()

func (*Chip8) Stop

func (c *Chip8) Stop()

func (*Chip8) Update

func (c *Chip8) Update() error

type Ram

type Ram [4096]byte

func InitRam

func InitRam(rom []byte) Ram

type Screen

type Screen struct {
	// contains filtered or unexported fields
}

func (*Screen) AddSprite

func (s *Screen) AddSprite(sprite []byte, x, y byte) bool

func (*Screen) Clear

func (s *Screen) Clear()

func (*Screen) DrawTo

func (s *Screen) DrawTo(screen *ebiten.Image)

func (*Screen) PrintScreen

func (s *Screen) PrintScreen()

func (*Screen) String

func (s *Screen) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL