ebiten/ebiten.go

30 lines
401 B
Go
Raw Normal View History

2013-06-18 17:48:41 +02:00
package ebiten
import (
2013-06-20 16:29:51 +02:00
"github.com/hajimehoshi/go.ebiten/graphics"
2013-06-18 17:48:41 +02:00
)
type TapInfo struct {
X int
Y int
}
2013-06-18 17:48:41 +02:00
type Game interface {
2013-06-21 16:16:52 +02:00
ScreenWidth() int
ScreenHeight() int
2013-06-23 15:38:41 +02:00
Fps() int
2013-06-19 16:08:24 +02:00
Init(tf graphics.TextureFactory)
2013-06-25 03:27:32 +02:00
Update(input InputState)
2013-06-27 17:33:03 +02:00
Draw(g graphics.Context, offscreen graphics.Texture)
2013-06-18 17:48:41 +02:00
}
2013-06-19 02:36:57 +02:00
type UI interface {
2013-06-26 18:46:13 +02:00
Run()
2013-06-19 02:36:57 +02:00
}
2013-06-25 03:27:32 +02:00
type InputState struct {
IsTapped bool
X int
Y int
}