examples/isometric: Remove unused variables

This commit is contained in:
Hajime Hoshi 2021-10-01 11:15:52 +09:00
parent 1019e15ccd
commit 234a3d8d2a

View File

@ -27,8 +27,6 @@ import (
"github.com/hajimehoshi/ebiten/v2/inpututil" "github.com/hajimehoshi/ebiten/v2/inpututil"
) )
var spinner = []byte(`-\|/`)
// Game is an isometric demo game. // Game is an isometric demo game.
type Game struct { type Game struct {
w, h int w, h int
@ -39,8 +37,6 @@ type Game struct {
camScaleTo float64 camScaleTo float64
mousePanX, mousePanY int mousePanX, mousePanY int
spinnerIndex int
} }
// NewGame returns a new isometric demo Game. // NewGame returns a new isometric demo Game.
@ -178,6 +174,8 @@ func (g *Game) cartesianToIso(x, y float64) (float64, float64) {
} }
/* /*
This function might be useful for those who want to modify this example.
// isoToCartesian transforms isometric coordinates into cartesian coordinates. // isoToCartesian transforms isometric coordinates into cartesian coordinates.
func (g *Game) isoToCartesian(x, y float64) (float64, float64) { func (g *Game) isoToCartesian(x, y float64) (float64, float64) {
tileSize := g.currentLevel.tileSize tileSize := g.currentLevel.tileSize