百科知识

用Java编一个小游戏,是俄罗斯方块

2008-11-14 09:53:00y***
用Java编一个小游戏,是俄罗斯方块:不好意思,借花献MM?

最佳回答

  • 不好意思,借花献MM
    2008-11-14 21:43:00
  •   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。
      
    2008-11-14 19:08:00
  • 已经给你发了,请查收。
    2008-11-14 16:06:00
  • 很赞哦! (127)