mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/isometric: Remove unused variables
This commit is contained in:
parent
1019e15ccd
commit
234a3d8d2a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user