ebxoxo

package
v0.0.0-...-d505d60 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, logger zerolog.Logger, debug bool, urlstr, key string) error

func Shutdown

func Shutdown()

Types

type Board

type Board struct{}

func (*Board) ClickHandler

func (b *Board) ClickHandler(x, y int)

func (*Board) Draw

func (b *Board) Draw(screen *ebiten.Image, tick int)

type Button

type Button struct {
	// contains filtered or unexported fields
}

func NewButton

func NewButton(label string, x, y, w, h int, color, colorActive color.Color, img, active *ebiten.Image) *Button

func (*Button) Draw

func (b *Button) Draw(screen *ebiten.Image, x, y, tick int)

type Game

type Game struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, logger zerolog.Logger, debug bool, scaling float64, urlstr, key string) *Game

func (*Game) ConnectHandler

func (g *Game) ConnectHandler(ctx context.Context)

func (*Game) Connected

func (g *Game) Connected() bool

func (*Game) Draw

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

func (*Game) Err

func (g *Game) Err() error

func (*Game) Layout

func (g *Game) Layout(int, int) (int, int)

func (*Game) LayoutF

func (g *Game) LayoutF(float64, float64) (float64, float64)

func (*Game) Shutdown

func (g *Game) Shutdown()

func (*Game) ShutdownWithError

func (g *Game) ShutdownWithError(err error)

func (*Game) Update

func (g *Game) Update() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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