chore: rename Rows to Lines in Grid as Lines are more common in tetris.
This commit is contained in:
parent
db9ec53d35
commit
190c6ad914
3 changed files with 17 additions and 17 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue