ebiten/ebiten.go
2013-11-23 19:51:29 +09:00

23 lines
338 B
Go

package ebiten
import (
"github.com/hajimehoshi/go-ebiten/graphics"
)
type Game interface {
InitTextures(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
}