package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Apr 8, 2017
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Game interface {
Frame([]InputEvent)
SetScreenSize(width, height int)
}
type InputEvent struct {
Down bool
Key Key
}
const (
KeyLeft Key = 1 + iota
KeyRight
KeyUp
KeyRestart
)
type Rectangle struct {
X, Y, W, H int
}
type Sound interface {
Play()
PlayLooping()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.