menu

package
v0.0.0-...-da61710 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndScene

func EndScene() (string, *oak.SceneResult)

func LoopScene

func LoopScene() bool

func StartScene

func StartScene(_ string, levelData interface{})

Types

type LevelStats

type LevelStats struct {
	Score   int64   `json:"score"`
	Time    int64   `json:"time"`
	Cleared float64 `json:"cleared"`
	Level   int     `json:"level"`
}

func (*LevelStats) CalculateScore

func (ls *LevelStats) CalculateScore()

type LevelStorage

type LevelStorage struct {
	Stats [5]LevelStats `json:"stats"`
}

type Player

type Player struct {
	entities.Reactive
	collision.Phase
	// contains filtered or unexported fields
}

func NewPlayer

func NewPlayer() *Player

func (*Player) Init

func (p *Player) Init() event.CID

Jump to

Keyboard shortcuts

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