ebiten/ebiten.go
2013-10-13 17:43:56 +09:00

27 lines
351 B
Go

package ebiten
import (
"github.com/hajimehoshi/go.ebiten/graphics"
)
const (
FPS = 60
)
type Game interface {
Init(tf graphics.TextureFactory)
Update(context GameContext)
Draw(context graphics.Context)
}
type GameContext interface {
ScreenWidth() int
ScreenHeight() int
InputState() InputState
}
type InputState struct {
X int
Y int
}