示例#1
0
func (g *Game) Setup() {
	engi.SetBg(0x2d3739)
	g.font = engi.NewGridFont(engi.Files.Image("font"), 20, 20)
	g.circle = g.getCircleTexture(circleSize / 2)
}
示例#2
0
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)
}
示例#3
0
func (game *Game) Setup() {
	engi.SetBg(0x2d3739) // 背景の色
	game.gopher = engi.Files.Image("gopher")
	//	game.font = engi.NewGridFont(engi.Files.Image("font"), 20, 20)
}
示例#4
0
文件: hello.go 项目: Rubentxu/lbricks
func (game *Game) Setup() {
	engi.SetBg(0x2d3739)
	game.bot = engi.Files.Image("bot")
	game.font = engi.NewGridFont(engi.Files.Image("font"), 20, 20)
}