示例#1
9
// 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

}
示例#2
9
func (game *Game) Preload() {
	engi.Files.Add("gopher", "data/gopher.png")
	game.batch = engi.NewBatch(engi.Width(), engi.Height())
}
示例#3
4
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)
}
示例#4
0
文件: hello.go 项目: Rubentxu/lbricks
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())
}