raycaster.java

来自「《J2ME Game Programming》随书光盘源代码」· Java 代码 · 共 41 行

JAVA
41
字号

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.rms.*;
import java.io.*;

public class Raycaster extends MIDlet
{
   private static Raycaster theApp;
   private GameScreen gs;

   public Raycaster()
   {
      theApp = this;
      gs = new GameScreen(this);
   }

   public static Raycaster getApp()
   {
      return theApp;
   }

   public void startApp() throws MIDletStateChangeException
   {
      Display.getDisplay(this).setCurrent(gs);
   }

   public void pauseApp()
   {
   }

   public void destroyApp(boolean unconditional) throws MIDletStateChangeException
   {
   }

}




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?