不好意思,借花献MM
package UI;import t。*;import t。event。*;//俄罗斯方块类public class ERS_Block extends Frame{public static boolean isPlay=false;public static int level=1,score=0;public static TextField scoreField,levelField;public static MyTimer timer;GameCanvas gameScr;public static void main(String[] argus){ERS_Block ers = new ERS_Block("俄罗斯方块游戏 V1。
0 Author:Vincent");WindowListener win_listener = new WinListener(); dWindowListener(win_listener);}//俄罗斯方块类的构造方法ERS_Block(String title){super(title);setSize(600,480);setLayout(new GridLayout(1,2));gameScr = new GameCanvas(); dKeyListener(gameScr);timer = new MyTimer(gameScr); tDaemon(true); art(); spend();add(gameScr);Panel。
已经给你发了,请查收。
0