gg/src/cmd/test/main.go

26 lines
305 B
Go

package main
import (
"github.com/surdeus/gox/src/gx"
)
type Player struct {
*gx.Object
}
func NewPlayer() *Player {
return &Player{
Object: &gx.Object{},
}
}
func main() {
e := gx.New(&gx.WindowConfig{
Title: "Test title",
Width: 480,
Height: 320,
})
e.Add(0, NewPlayer())
e.Run()
}