1
0
Fork 0

chore: rename Rows to Lines in Grid as Lines are more common in tetris.

This commit is contained in:
Henrik Hautakoski 2025-10-18 11:32:26 +02:00
parent db9ec53d35
commit 190c6ad914
3 changed files with 17 additions and 17 deletions

View file

@ -119,7 +119,7 @@ func (gp *GamePlay) Update(fsm state.Transitioner, delta float32) {
if game.CheckShapeCollision(new_pos, &gp.shape, &gp.grid) {
gp.LockShape()
gp.SpawnShape()
lines := gp.grid.FullRows()
lines := gp.grid.FullLines()
if len(lines) > 0 {
gp.lineClearAnimation.SetLines(lines)
gp.score.Lines(byte(len(lines)))