mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-09-21 05:42:18 +02:00
30 lines
401 B
Go
30 lines
401 B
Go
package ebiten
|
|
|
|
import (
|
|
"github.com/hajimehoshi/go.ebiten/graphics"
|
|
)
|
|
|
|
type TapInfo struct {
|
|
X int
|
|
Y int
|
|
}
|
|
|
|
type Game interface {
|
|
ScreenWidth() int
|
|
ScreenHeight() int
|
|
Fps() int
|
|
Init(tf graphics.TextureFactory)
|
|
Update(input InputState)
|
|
Draw(g graphics.Context, offscreen graphics.Texture)
|
|
}
|
|
|
|
type UI interface {
|
|
Run()
|
|
}
|
|
|
|
type InputState struct {
|
|
IsTapped bool
|
|
X int
|
|
Y int
|
|
}
|