feat: clear full lines after locking shape
This commit is contained in:
parent
2a7f394b7f
commit
ac4d911efd
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
|
@ -82,6 +82,7 @@ func Update(delta float32) {
|
|||
// Update position if it does not collide
|
||||
if game.CheckShapeCollision(new_pos, &shape, &grid) {
|
||||
LockShape()
|
||||
grid.ClearFullRows()
|
||||
SpawnShape()
|
||||
} else {
|
||||
shape_pos = new_pos
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue