ebiten/example/game/blank/blank.go

35 lines
522 B
Go
Raw Normal View History

2013-06-24 15:27:43 +02:00
package blank
import (
2013-06-25 03:27:32 +02:00
"github.com/hajimehoshi/go.ebiten"
2013-06-24 15:27:43 +02:00
"github.com/hajimehoshi/go.ebiten/graphics"
)
type Blank struct {
}
func New() *Blank {
2013-06-25 03:27:32 +02:00
return &Blank{}
2013-06-24 15:27:43 +02:00
}
func (game *Blank) ScreenWidth() int {
return 256
}
func (game *Blank) ScreenHeight() int {
return 240
}
func (game *Blank) Fps() int {
return 60
}
func (game *Blank) Init(tf graphics.TextureFactory) {
}
2013-06-25 03:27:32 +02:00
func (game *Blank) Update(input ebiten.InputState) {
2013-06-24 15:27:43 +02:00
}
func (game *Blank) Draw(g graphics.GraphicsContext, offscreen graphics.Texture) {
}