fixed some performance things
This commit is contained in:
@@ -21,7 +21,7 @@ var CurrentEnergy = defaultStartingEnergy
|
||||
var CurrentLevel = 1
|
||||
|
||||
type Player struct {
|
||||
square Square
|
||||
square *Square
|
||||
row int
|
||||
col int
|
||||
currColorIndex int
|
||||
@@ -41,7 +41,7 @@ func SetupPlayer() {
|
||||
sq.SetPosition(gridSq.x, gridSq.y)
|
||||
|
||||
//setup struct for passing around
|
||||
ply := Player{square: sq, row: rows, col: 1, currColorIndex: 0}
|
||||
ply := Player{square: &sq, row: rows, col: 1, currColorIndex: 0}
|
||||
MainPlayer = &ply
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user