Versions in this module Expand all Collapse all v1 v1.0.0 May 28, 2019 Changes in this version + const AppAudio + const Channels + const NumKeys + const SampleRate + const TimeFrame + func DrawCenteredText(dst draw.Image, text string, dx, dy int, c color.Color) + func DrawCharacter(dst draw.Image, x, y int, ch byte, c color.Color) + func DrawText(dst draw.Image, x, y int, text string, c color.Color) + func GetSavePath(roomID string) string + func WordWrap(text string, maxLength int) []string + type Director struct + Done chan struct{} + func NewDirector(roomID string, imageChannel chan<- *image.RGBA, audioChannel chan<- float32, ...) *Director + func (d *Director) GetHashPath() string + func (d *Director) LoadGame() error + func (d *Director) PlayGame(path string) + func (d *Director) Run() + func (d *Director) SaveGame(saveExtraFunc func() error) error + func (d *Director) SetView(view *GameView) + func (d *Director) Start(paths []string) + func (d *Director) Step() + type GameView struct + func NewGameView(console *nes.Console, title, saveFile string, imageChannel chan<- *image.RGBA, ...) *GameView + func (view *GameView) Enter() + func (view *GameView) Exit() + func (view *GameView) ListenToInputChannel() + func (view *GameView) Load(path string) + func (view *GameView) Save(hash string, extraSaveFunc func() error) + func (view *GameView) Update(t, dt float64) + func (view *GameView) UpdateEvents()