1
0
Fork 0

fix: reset state on Enter()

This commit is contained in:
Henrik Hautakoski 2025-09-24 18:01:55 +02:00
parent 54a7821df0
commit cd750a5508

View file

@ -44,6 +44,9 @@ func NewGamePlay() *GamePlay {
}
func (gp *GamePlay) Enter() {
gp.grid = game.Grid{}
gp.score = 0
gp.dropTimer.SetInterval(0.3)
gp.shapeQueue = game.NewShapeQueue()
gp.nextShape = gp.shapeQueue.Next()
gp.SpawnShape()