// Preload .. Setup Data func (game *Game) Preload() { engi.Files.Add("bot", "data/icon.png") engi.Files.Add("font", "data/font.png") game.batch = engi.NewBatch(engi.Width(), engi.Height()) game.keyMap = make(map[engi.Key]bool) game.botX, game.botY = 512, 320 }
func (game *Game) Preload() { engi.Files.Add("gopher", "data/gopher.png") game.batch = engi.NewBatch(engi.Width(), engi.Height()) }
func (g *Game) Preload() { engi.Files.Add("font", "data/font.png") g.W, g.H = engi.Width(), engi.Height() g.batch = engi.NewBatch(g.W, g.H) }
func (g *Game) Resize(w, h int) { g.W, g.H = float32(w), float32(h) g.batch = engi.NewBatch(g.W, g.H) }
func (game *Game) Setup() { engi.SetBg(0x2d3638) texture := engi.Files.Image("bot") region = engi.NewRegion(texture, 0, 0, int(texture.Width()), int(texture.Height())) batch = engi.NewBatch(800, 600) }
func (game *Game) Preload() { engi.Files.Add("bot", "data/icon.png") engi.Files.Add("font", "data/font.png") game.batch = engi.NewBatch(engi.Width(), engi.Height()) }