⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svsbmidlet.java~16~

📁 一个很好玩的手机游戏
💻 JAVA~16~
字号:
import java.io.IOException;import javax.microedition.midlet.*;import javax.microedition.lcdui.*;import javax.microedition.io.*;public class SVSBMIDlet     extends MIDlet{  private ChoosePieceScreen choosePieceScreen ;  private GameScreen gameScreen ;  public SVSBMIDlet()  {  }  public void startApp()  {    Displayable current = Display.getDisplay(this).getCurrent();//获取第一个屏幕    if(current == null)  //如果当前没有屏幕存在,则产生屏幕用以显示    {      Image logo = null ;      try      {        logo = Image.createImage("/svsb.png");//产生logo标志,为下面使用做准备      }      catch(IOException e)      {      }      Alert splashScreen = new Alert(null,"傻大母VS小不死\n华娱无线",logo,AlertType.INFO);//产生闪动窗口      splashScreen.setTimeout(4000);//闪动窗口停留4秒中      choosePieceScreen = new ChoosePieceScreen(this);      Display.getDisplay(this).setCurrent(splashScreen,choosePieceScreen);    }    else//如果当前有屏幕存在则显示当前屏幕    {      Display.getDisplay(this).setCurrent(current);    }  }  public void pauseApp()  {  }  public void destroyApp(boolean unconditional)  {  }  public void exit()  {    destroyApp(false);    notifyDestroyed();  }  public void choosePieceScreenDone(boolean isPlayerCircle)  {    gameScreen = new GameScreen(this,isPlayerCircle);    Display.getDisplay(this).setCurrent(gameScreen);  }  public void showInfo()  {   TextBox  infoBox = new TextBox("游戏信息","信息内容",512,0);   Display.getDisplay(this).setCurrent(infoBox);  }}

⌨️ 快捷键说明

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