Versions in this module Expand all Collapse all v0 v0.0.3 Aug 15, 2021 Changes in this version + func CreateGenericThumbnail(text string) image.Image + 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 Run(paths []string) + func WordWrap(text string, maxLength int) []string + type Audio struct + func NewAudio() *Audio + func (a *Audio) Callback(out []float32) + func (a *Audio) Start() error + func (a *Audio) Stop() error + type Director struct + func NewDirector(window *glfw.Window, audio *Audio) *Director + func (d *Director) PlayGame(path string) + func (d *Director) Run() + func (d *Director) SetTitle(title string) + func (d *Director) SetView(view View) + func (d *Director) ShowMenu() + func (d *Director) Start(paths []string) + func (d *Director) Step() + type GameView struct + func (view *GameView) Enter() + func (view *GameView) Exit() + func (view *GameView) Update(t, dt float64) + type MenuView struct + func (view *MenuView) Enter() + func (view *MenuView) Exit() + func (view *MenuView) Update(t, dt float64) + type Texture struct + func NewTexture() *Texture + func (t *Texture) Bind() + func (t *Texture) Lookup(path string) (x, y, dx, dy float32) + func (t *Texture) Purge() + func (t *Texture) Unbind() + type View interface + Enter func() + Exit func() + Update func(t, dt float64) + func NewGameView(director *Director, console *nes.Console, title, hash string) View + func NewMenuView(director *Director, paths []string) View