?? snake.java
字號:
/////////////////////////////////////////////////////////////////////////////////////////////////////// Snake.java//// Project: Snake// Author(s): Gao Lei// Create: 2007-10-08///////////////////////////////////////////////////////////////////////////////////////////////////package code; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; ///////////////////////////////////////////////////////////////////////////////////////////////////public class Snake extends MIDlet { static Snake s_midlet; static Display s_display = null; static cGame s_game = null; public Snake() { s_midlet = this; } public void startApp() { if (s_display == null) { s_display = Display.getDisplay(this); } if (s_game == null) { s_game = new cGame(); s_display.setCurrent(s_game); } else { s_display.setCurrent(s_game); } } public void pauseApp() { } public void destroyApp(boolean unconditional) { notifyDestroyed(); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -