project-rpg/main.go
2018-01-15 22:42:11 -07:00

29 lines
390 B
Go

// main
package main
import (
"github.com/faiface/pixel"
"github.com/faiface/pixel/pixelgl"
//"github.com/go-gl/glfw/v3.2/glfw"
)
func run() {
cfg := pixelgl.WindowConfig{
Title: "Pixel Rocks!",
Bounds: pixel.R(0, 0, 1024, 768),
}
win, err := pixelgl.NewWindow(cfg)
if err != nil {
panic(err)
}
for !win.Closed() {
win.Update()
}
}
func main() {
pixelgl.Run(run)
}