Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
MarioMIDlet.java
Package: J2ME&Game.rar [view]
Upload User: gyyuli
Upload Date: 2013-07-09
Package Size: 3050k
Code Size: 2k
Category:
J2ME
Development Platform:
Java
- /**
- * <p>Title: Mario</p>
- * <p>Description:
- * You cannot remove this copyright and notice.
- * You cannot use this file any part without the express permission of the author.
- * All Rights Reserved</p>
- * <p>Copyright: lizhenpeng (c) 2004</p>
- * <p>Company: LP&P</p>
- * @author lizhenpeng
- * @version 1.0.0
- */
- package mario;
- import javax.microedition.midlet.*;
- import javax.microedition.lcdui.*;
- import lipeng.LPIGetCanvas;
- import lipeng.LPProgressThread;
- public class MarioMIDlet
- extends MIDlet
- implements LPIGetCanvas
- {
- public MarioMIDlet()
- {
- gameLoading = new LPProgressThread(this);
- }
- public void startApp()
- {
- if(gameLoading.loadProgressIsOver)
- {
- Display.getDisplay(this).setCurrent(gameCanvas);
- gameCanvas.start();
- }
- else
- {
- Display.getDisplay(this).setCurrent(gameLoading);
- gameLoading.start();
- if(gameLoading.gaugeCnt==0)
- {
- gameCanvas = new MarioGameCanvas(this);
- }
- }
- }
- public Canvas getCanvas()
- {
- return gameCanvas;
- }
- public void pauseApp()
- {
- if(gameLoading.loadProgressIsOver)
- {
- gameCanvas.stop();
- }
- else
- {
- gameLoading.stop();
- }
- }
- public void destroyApp(boolean unconditional)
- {
- if(gameLoading.loadProgressIsOver)
- {
- gameCanvas.record.close();
- gameCanvas.stop();
- }
- }
- public void exitMIDlet()
- {
- destroyApp(false);
- notifyDestroyed();
- }
- static public MarioGameCanvas gameCanvas;
- public LPProgressThread gameLoading;
- }