J2ME中的 GAME API介绍[18]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

      

      

       //监测运行时,以便及时运行垃圾回收

       rt = Runtime.getRuntime();

      

       startCommand = new Command("Start", Command.OK, 1);

       pauseCommand = new Command("Pause", Command.OK, 1);

       exitCommand  = new Command("Exit", Command.EXIT, 2);

      

      

       //初始化其它类及图层

      

       //初始化游戏状态

       this.gameState = this.GAME_INIT;      //游戏处于demo画面状态

      

      

       //启动应用程序

       threadAlive = true;

       thread = new Thread(this);

       thread.start();

      

   }

 

   /**

    * 初始化地图数据 地图窗口显示方式

    */

   private void init(){

       //清理数据

       this.clearData();

      

       mainWidth  = getWidth();

本文关键:J2ME中的 GAME API介绍
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top