Game Development Reference
In-Depth Information
Listing 6-21. Log Messages from Wolf 3D
08-21 18:12:50.823: DEBUG/WolfTools(710): Installing game wolfsw.zip in «
/data/data/game.wolfsw/files
08-21 18:12:53.653: DEBUG/Wolf3D(710): Start game base dir: /data/data/game.wolfsw/files/ «
game=wolfsw port:true
08-21 18:12:53.663: DEBUG/Wolf3D(710): Loading JNI librray from wolf_jni
08-21 18:12:53.697: DEBUG/LibLoader(710): Trying to load library wolf_jni from LD_PATH: «
/system/lib
08-21 18:12:53.704: DEBUG/dalvikvm(710): Trying to load lib /data/data/game.wolfsw/lib/ «
libwolf_jni.so 0x43596e78
08-21 18:12:54.034: DEBUG/dalvikvm(710): Added shared lib /data/data/game.wolfsw/lib/ «
libwolf_jni.so 0x43596e78
08-21 18:12:55.305: INFO/System.out(710): ** Wolf Message: WolfMain args[4]=wolf3d
08-21 18:12:55.305: INFO/System.out(710): ** Wolf Message: WolfMain args[4]=wolfsw
08-21 18:12:55.314: INFO/System.out(710): ** Wolf Message: WolfMain args[4]=basedir
08-21 18:12:55.354: INFO/System.out(710): ** Wolf Message: WolfMain args[4]=/data/data/ «
game.wolfsw/files/
08-21 18:12:55.465: INFO/System.out(710): ** Wolf Message: Now Loading Wolfenstein 3D Plus «
basedir /data/data/game.wolfsw/files/
08-21 18:12:55.515: INFO/System.out(710): ** Wolf Message: You Chose Shareware Wolf3D
08-21 18:12:55.766: INFO/ActivityManager(580): Displayed activity game.wolfsw/ «
.WolfLauncher: 8499 ms
08-21 18:12:56.463: INFO/System.out(710): ** Wolf Message: VL_Startup 320x200. Calling «
init graphics.
08-21 18:12:56.514: DEBUG/Wolf3D(710): OnInitGraphics creating Bitmap of 320 by 200
The first line shows the game files being installed in /data/data/game.wolfsw/files . Note that
without these data files the game will crash. The next lines show the native library being successfully
loaded by the Java VM:
Trying to load lib /data/data/game.wolfsw/lib/libwolf_jni.so 0x43596e78
Added shared lib /data/data/game.wolfsw/lib/libwolf_jni.so 0x43596e78
At this point, the game should start successfully, and you should be able to use the controller
buttons (or the keyboard if you wish) to play Wolfenstein 3D in your Android device (see Figure 6-9).
Enjoy!
 
Search WWH ::




Custom Search