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 {
|
2023-02-17 16:56:15 +03:00
|
|
|
*gx.Object
|
|
|
|
}
|
|
|
|
|
|
|
|
func NewPlayer() *Player {
|
|
|
|
return &Player{
|
|
|
|
Object: &gx.Object{},
|
|
|
|
}
|
2023-02-17 16:40:46 +03:00
|
|
|
}
|
|
|
|
|
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:56:15 +03:00
|
|
|
e.Add(0, NewPlayer())
|
2023-02-17 07:04:29 +03:00
|
|
|
e.Run()
|
|
|
|
}
|