gg/src/cmd/test/main.go

27 lines
305 B
Go
Raw Normal View History

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