Example #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)
}
Example #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)
}
Example #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)
}
Example #4
0
func (game *Game) Setup() {
	engi.SetBg(0x2d3739)
	game.bot = engi.Files.Image("bot")
	game.font = engi.NewGridFont(engi.Files.Image("font"), 20, 20)
}