Курсовая работа: Java-гра Тетріс
cells[0] = new int[10];
for (int j=0; j<10; j++) {
cells[0][j]=0;
}
}
return linesCount;
}
}
Файл PlaySound.java
package Tetr;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.sound.midi.*;
import java.io.*;
/**
*
* @author irdis_13
*/
public class PlaySound implements ActionListener{
public PlaySound(String s){
play(s);
}
protected void play(String file) {
try{
File f = new File(file);
Sequencer sequencer = MidiSystem.getSequencer();
if (sequencer == null) {
System.err.println("Sequenser not supported");
}