elements

package
v0.0.0-...-eb462ea Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOWN = iota + 1
	UP
	LEFT
	RIGHT
)
View Source
const (
	WALK_LEFT = iota + 1
	WALK_RIGHT
	WALK_DOWN
	WALK_UP
	STAND
	ATTACK_UP
	ATTACK_DOWN
	ATTACK_LEFT
	ATTACK_RIGHT
)
View Source
const (
	CURRENT = iota + 1
	OVERWORLD
	CAVE
	CASTLE
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Door

type Door struct {
	Object
	// contains filtered or unexported fields
}

func NewDoor

func NewDoor(img string, loc pixel.Vec, target int) *Door

func (*Door) Door

func (door *Door) Door(win *pixelgl.Window)

type Enemy

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

func NewEnemy

func NewEnemy(loc pixel.Vec, name string) *Enemy

type Intro

type Intro struct {
	IsActive bool
	// contains filtered or unexported fields
}

func NewIntro

func NewIntro() *Intro

func (*Intro) Draw

func (intro *Intro) Draw(win *pixelgl.Window)

func (*Intro) Update

func (intro *Intro) Update(win *pixelgl.Window)
type Link struct {
	Pos pixel.Vec
	// contains filtered or unexported fields
}
func NewLink() *Link

func (*Link) Draw

func (link *Link) Draw(win *pixelgl.Window)

func (*Link) Update

func (link *Link) Update(win *pixelgl.Window, world *World) int

type Object

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

func NewObject

func NewObject(img string, loc pixel.Vec, blocking bool) *Object

type World

type World struct {
	LinkPos pixel.Vec
	// contains filtered or unexported fields
}

func CreateWorld

func CreateWorld(worldType int) *World

func (*World) UpdateAndDraw

func (world *World) UpdateAndDraw(win *pixelgl.Window)

Jump to

Keyboard shortcuts

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