ebiten/example/main.go
2014-12-07 01:09:59 +09:00

19 lines
344 B
Go

package main
import (
"github.com/hajimehoshi/ebiten/example/blocks"
"github.com/hajimehoshi/ebiten/ui"
"github.com/hajimehoshi/ebiten/ui/glfw"
"runtime"
)
func init() {
runtime.LockOSThread()
}
func main() {
u := new(glfw.UI)
game := blocks.NewGame()
ui.Run(u, game, blocks.ScreenWidth, blocks.ScreenHeight, 2, "Ebiten Demo", 60)
}