feat: add line completed sound

This commit is contained in:
Martin Prokoph
2025-06-29 15:06:01 +02:00
parent 0a2294cd3d
commit f226cb40e2
8 changed files with 5 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ public class Tetromino {
public boolean fall() {
Vec2i newPos = centerPos.offset(Vec2i.of(0, 1));
if (collidesVertically(newPos)) {
SoundEffect.BEEP.play();
SoundEffect.BOOP.play();
int[] affectedLines = new int[this.collision.length];
int line = centerPos.getY();
for (int i = 0; i < this.collision.length; i++) {