emulator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emulator

type Emulator struct {
	GBC    *gbc.GBC
	Rom    []byte
	RomDir string
	// contains filtered or unexported fields
}

func New

func New(romData []byte, romDir string) *Emulator

func (*Emulator) Continue

func (e *Emulator) Continue(w http.ResponseWriter, req *http.Request)

func (*Emulator) Draw

func (e *Emulator) Draw(screen *ebiten.Image)

func (*Emulator) Exit

func (e *Emulator) Exit()

func (*Emulator) Layout

func (e *Emulator) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Emulator) Pause

func (e *Emulator) Pause(w http.ResponseWriter, req *http.Request)

these requests accept get method, but have side effect ummmm....

func (*Emulator) Quit

func (e *Emulator) Quit(w http.ResponseWriter, req *http.Request)

func (*Emulator) Reset

func (e *Emulator) Reset(w http.ResponseWriter, req *http.Request)

func (*Emulator) ResetGBC

func (e *Emulator) ResetGBC()

func (*Emulator) RunServer

func (e *Emulator) RunServer(port int)

func (*Emulator) Update

func (e *Emulator) Update() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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