1
0
Fork 0

feat: clear full lines after locking shape

This commit is contained in:
Henrik Hautakoski 2025-09-15 08:07:02 +02:00
parent 2a7f394b7f
commit ac4d911efd

View file

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