28 lines
478 B
Go
28 lines
478 B
Go
package main
|
|
|
|
import (
|
|
. "git.danitheskunk.com/squishy/blooblib"
|
|
. "git.danitheskunk.com/squishy/blooblib/gui"
|
|
run "git.danitheskunk.com/squishy/blooblib/Run"
|
|
)
|
|
|
|
type Game struct {
|
|
}
|
|
|
|
func (g Game) Init(bloob *Bloob, settings *Settings) {
|
|
button := NewButton("Ok")
|
|
button.Pos = Vec2i{X: 20, Y: 20}
|
|
Gui.Root = button
|
|
}
|
|
|
|
func (g Game) Render(bloob *Bloob, screen *Image) {
|
|
screen.Clear(0xcccccc)
|
|
}
|
|
|
|
func (g Game) Update(bloob *Bloob) {
|
|
}
|
|
|
|
func main() {
|
|
run.Run(&Game{})
|
|
}
|