runtime

package
v0.0.0-...-4b75a74 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToKey

func ByteToKey(b byte) ebiten.Key

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) Draw

func (g *Runtime) Draw(screen *ebiten.Image)

func (*Runtime) IsPixelSet

func (g *Runtime) IsPixelSet(col int, row int) bool

func (*Runtime) Layout

func (g *Runtime) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)

func (*Runtime) PlayAudio

func (g *Runtime) PlayAudio()

func (*Runtime) Set

func (g *Runtime) Set(col int, row int, on bool)

func (*Runtime) StopAudio

func (g *Runtime) StopAudio()

func (*Runtime) Update

func (g *Runtime) Update() error

func (*Runtime) WaitForKeypress

func (g *Runtime) WaitForKeypress(keypresses chan byte)

Jump to

Keyboard shortcuts

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