mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
19 lines
344 B
Go
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)
|
|
}
|