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