objects

package
v0.0.0-...-0a9aa5c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	Update(*ebiten.Image, uint) // tell the object a new tick happened
	Draw(*ebiten.Image) error   // draw the object
	OnScreen() bool             // false when the object is out of the screen
}

func NewBackground

func NewBackground(imgName string) Object

func NewCrosshair

func NewCrosshair(imgName, clickedImgName string) Object

func NewCurtains

func NewCurtains(top, lateral string) Object

func NewDesk

func NewDesk(imgName string) Object

func NewLevel1

func NewLevel1(imgName, duckImgName string, maxDucks int, score *int64) Object

func NewScore

func NewScore(scoreImgName, dotsImgName, numImgName string, scoreValue *int64) Object

Jump to

Keyboard shortcuts

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