space

package
v0.0.0-...-916aed3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

Game the game logic sequence struct

func NewGame

func NewGame(strokes map[*domain.Stroke]struct{}, sprites []domain.Spriter) *Game

NewGame generates game struct

func (*Game) Update

func (g *Game) Update(screen *ebiten.Image) (err error)

Update used for ebiten.Run handler

type Screen

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

Screen sets the screen

func NewScreen

func NewScreen(width, height int) *Screen

NewScreen sets the screen width and height

func (*Screen) Height

func (scr *Screen) Height() int

Height gets the once set readonly height

func (*Screen) Width

func (scr *Screen) Width() int

Width gets the once set readonly width

Jump to

Keyboard shortcuts

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