ebiten/example/main.go

19 lines
344 B
Go
Raw Normal View History

2013-07-05 15:25:45 +02:00
package main
import (
2014-12-05 14:16:58 +01:00
"github.com/hajimehoshi/ebiten/example/blocks"
"github.com/hajimehoshi/ebiten/ui"
2014-12-05 18:26:02 +01:00
"github.com/hajimehoshi/ebiten/ui/glfw"
2013-07-05 15:25:45 +02:00
"runtime"
)
2013-12-18 10:05:28 +01:00
func init() {
runtime.LockOSThread()
2013-12-07 17:35:24 +01:00
}
2013-07-05 15:25:45 +02:00
func main() {
2014-12-05 18:26:02 +01:00
u := new(glfw.UI)
2014-12-06 17:09:59 +01:00
game := blocks.NewGame()
ui.Run(u, game, blocks.ScreenWidth, blocks.ScreenHeight, 2, "Ebiten Demo", 60)
2013-07-05 15:25:45 +02:00
}