fixed some performance things

This commit is contained in:
MrDonuts
2023-11-20 23:25:38 -05:00
parent a875a4ed57
commit 7af60685db
7 changed files with 15 additions and 21 deletions

View File

@@ -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
}