Documentation
¶
Index ¶
- func ByteToKey(b byte) ebiten.Key
- type Runtime
- func (g *Runtime) ClearScreen()
- func (g *Runtime) Draw(screen *ebiten.Image)
- func (g *Runtime) IsPixelSet(col int, row int) bool
- func (g *Runtime) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
- func (g *Runtime) PlayAudio()
- func (g *Runtime) Set(col int, row int, on bool)
- func (g *Runtime) StopAudio()
- func (g *Runtime) Update() error
- func (g *Runtime) WaitForKeypress(keypresses chan byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime provides an ebitengine "game" implementation with fields for the images the drawing "canvas" consists of: image: The main screen "memory" ghostImage: Provides a small "ghost" aka CRT effect where previously lit pixels are faded out, overlaid on the image. tmpImage: Used as intermediate image on each frame update where the ghostImage is multiplied by alphaColorM to accomplish the fade effect.
func NewUIRuntime ¶
func NewUIRuntime() *Runtime
func (*Runtime) ClearScreen ¶
func (g *Runtime) ClearScreen()
func (*Runtime) WaitForKeypress ¶
Click to show internal directories.
Click to hide internal directories.