2882269

所属分类:Windows编程
开发工具:Others
文件大小:356KB
下载次数:1
上传日期:2018-02-13 14:14:35
上 传 者Asatwa
说明:  MIDP_2_0_Introduction_to_the_Game_API example

文件列表:
Jbuild.xml (5673, 2003-12-16)
src\Field.java (5682, 2003-12-22)
src\GameOverScreen.java (4548, 2003-12-22)
src\HighScoreScreen.java (2681, 2003-12-22)
src\InstructionsScreen.java (2763, 2003-12-22)
src\MenuList.java (3873, 2003-12-22)
src\Sheep.java (12981, 2003-12-22)
src\Sheepdog.java (7373, 2003-12-22)
src\SheepdogCanvas.java (11645, 2003-12-22)
src\SheepdogMIDlet.java (10287, 2003-12-22)
src\SoundEffects.java (3673, 2003-12-22)
src\SplashScreen.java (3582, 2003-12-22)
preverified-temp\dog.wav (3098, 2003-12-23)
res\dog.wav (3098, 2003-05-14)
preverified-temp\sheep.wav (7030, 2003-12-23)
res\sheep.wav (7030, 2003-05-14)
preverified-temp\Field.class (3599, 2003-12-23)
xclasses\Field.class (3599, 2003-12-23)
preverified-temp\GameOverScreen.class (2579, 2003-12-23)
xclasses\GameOverScreen.class (2579, 2003-12-23)
preverified-temp\HighScoreScreen.class (1714, 2003-12-23)
xclasses\HighScoreScreen.class (1714, 2003-12-23)
preverified-temp\InstructionsScreen.class (1592, 2003-12-23)
xclasses\InstructionsScreen.class (1592, 2003-12-23)
preverified-temp\MenuList.class (2139, 2003-12-23)
xclasses\MenuList.class (2139, 2003-12-23)
preverified-temp\Sheep.class (5852, 2003-12-23)
xclasses\Sheep.class (5852, 2003-12-23)
preverified-temp\Sheepdog.class (3269, 2003-12-23)
xclasses\Sheepdog.class (3269, 2003-12-23)
preverified-temp\SheepdogCanvas.class (7294, 2003-12-23)
xclasses\SheepdogCanvas.class (7294, 2003-12-23)
preverified-temp\SheepdogMIDlet.class (8307, 2003-12-23)
xclasses\SheepdogMIDlet.class (8307, 2003-12-23)
preverified-temp\SoundEffects.class (2188, 2003-12-23)
xclasses\SoundEffects.class (2188, 2003-12-23)
preverified-temp\SplashScreen.class (1946, 2003-12-23)
xclasses\SplashScreen.class (1946, 2003-12-23)
xclasses\package cache\UnnamedPackage.dep2 (16458, 2003-12-23)
... ...

// Copyright 2003 Nokia Corporation. // // THIS SOURCE CODE IS PROVIDED 'AS IS', WITH NO WARRANTIES WHATSOEVER, // EXPRESS OR IMPLIED, INCLUDING ANY WARRANTY OF MERCHANTABILITY, FITNESS // FOR ANY PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE // OR TRADE PRACTICE, RELATING TO THE SOURCE CODE OR ANY WARRANTY OTHERWISE // ARISING OUT OF ANY PROPOSAL, SPECIFICATION, OR SAMPLE AND WITH NO // OBLIGATION OF NOKIA TO PROVIDE THE LICENSEE WITH ANY MAINTENANCE OR // SUPPORT. FURTHERMORE, NOKIA MAKES NO WARRANTY THAT EXERCISE OF THE // RIGHTS GRANTED HEREUNDER DOES NOT INFRINGE OR MAY NOT CAUSE INFRINGEMENT // OF ANY PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OWNED OR CONTROLLED // BY THIRD PARTIES // // Furthermore, information provided in this source code is preliminary, // and may be changed substantially prior to final release. Nokia Corporation // retains the right to make changes to this source code at // any time, without notice. This source code is provided for informational // purposes only. // // Nokia and Nokia Connecting People are registered trademarks of Nokia // Corporation. // Java and all Java-based marks are trademarks or registered trademarks of // Sun Microsystems, Inc. // Other product and company names mentioned herein may be trademarks or // trade names of their respective owners. // // A non-exclusive, non-transferable, worldwide, limited license is hereby // granted to the Licensee to download, print, reproduce and modify the // source code. The licensee has the right to market, sell, distribute and // make available the source code in original or modified form only when // incorporated into the programs developed by the Licensee. No other // license, express or implied, by estoppel or otherwise, to any other // intellectual property rights is granted herein. Release Notes - MIDlet example =============================================================== These notes are only intended as a brief guide for building and running the example. A more detailed description of the design of this MIDlet example has been provided as a separate design document. 1. Build environment -------------------- 'JBuilder' with 'MobileSet' plus 'Nokia Developers Suite for J2ME' were used to build and run the MIDlet on a Windows test environment. Installation, configuration and use of these tools is beyond the scope of the release notes. A build.xml file is also included to build the MIDlet using ant It uses the MIDP tasks included in the Antenna project. It can be found at http://antenna.sourceforge.net. Copy the antenna-bin.jar file to the ANT_HOME/lib directory If necessary to customize some properties build.properties can be used 2. Building and running the example using JBuilder -------------------------------------------------- Step 1. Open the Boids.jpx project This project contains all the .java source files contained in the subdirectory '.\src\example\boids'. Notes: - The 'Project' / 'Project Properties' windows can be used to set project properties related to building and running a MIDlet. - (The 'Tools' / 'Nokia Developer's Suite for J2ME(TM)' / 'Create Application Descriptor' can be used to create a .jad and .jar files. These have already been created as a convienence.) Step 2. Building the MIDlet These JBuilder mechanisms were used to build the MIDlet classfiles: 'Project' / 'Make Project "Boids.jpx"' 'Project' / 'Rebuild Project "Boids.jpx"' You should see a message like: 'Build succeeded. Build took 4 seconds.' Once the project has been built at least once as in Step 1, one can use: 'Tools' / 'Nokia Developer's Suite for J2ME' / 'Recreate' to recreate the jar file. Step 3. Running the MIDlet Use this mechanism to run the example: 'Run' / 'Run Project' The 'Project' / 'Project Properties' / 'Run' / 'MIDlet' tab may be used to run the example using via the .jad and .jar files. Step 4. Preparing the MIDlet for OTA download One may wish to perform various optional steps at this point, such as obfuscation, optimized compiling, jar file compression, etc. These are beyond the scope of these release notes. Because a variety of methods could be used to create the final .jad and .jar files used for OTA downloading of the MIDlet: - I recommend checking that the attributes in the .jad and .jar manifest files are correct, and that they match EXACTLY when present in both. One should think about the reasons why some arbitrary actual MIDP device might refuse to run a MIDlet (JAR size mismatches, attribute mismatches, etc.) - The 'check.sh' script gives a model of the types of things one might want to double-check (e.g. attribute values should match, MIDlet-Jar-Size should match the actual size, MIDlet-Jar-URL should be correct, etc.) in the process of preparing .jad and .jar files for use in OTA downloading. It is a guide and may not be an exhaustive list. - It is worth emphasizing that the mandatory parameters of the .jad and .jar manifest files should be present, should be correct, and should match for those attributes which are present in both. The MIDP 1.0 specification covers the mandatory .jad and .jar manifest attributes. Consult the relevant documentation of your build tools, for any other questions or issues that may arise. 3. Building and running the example using ant --------------------------------------------- Having ant and antenna installed the MIDlet can be built using the 'ant' or ant 'build' command. For a clean build use the 'ant cleanbuild' command

近期下载者

相关文件


收藏者