dungeon

package
v0.0.0-...-3d94bc9 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreenWidth  = 60
	ScreenHeight = 60
)

Variables

This section is empty.

Functions

func EssentialNewImageFromEncoded

func EssentialNewImageFromEncoded(encoded []byte) *ebiten.Image

func EssentialNewImageFromFile

func EssentialNewImageFromFile(path string) *ebiten.Image

func IsEqual2DSliceCell

func IsEqual2DSliceCell(a, b [][]cell) bool

func IsEqual2DSliceInt

func IsEqual2DSliceInt(a, b [][]int) bool

func IsEqual2DSliceString

func IsEqual2DSliceString(a, b [][]string) bool

func IsEqualColor

func IsEqualColor(a, b color.Color) bool

func IsEqualImageArea

func IsEqualImageArea(a, b *ebiten.Image, area image.Rectangle) bool

func IsJustPressed

func IsJustPressed(btn virtualButton) bool

func IsPressed

func IsPressed(btn virtualButton) bool

Types

type Game

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

Game ...

func NewGame

func NewGame() *Game

func (*Game) Draw

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

Draw ...

func (*Game) Layout

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

Layout ...

func (*Game) Update

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

Update ...

Jump to

Keyboard shortcuts

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