Game Development Reference
In-Depth Information
DEBUG/DoomClient(23981): **Doom Message: Main argv[6]=doom1.wad
DEBUG/DoomClient(23981): **Doom Message: I_UpdateVideoMode: 480x320 (fullscreen) «
default VM=8
DEBUG/DoomClient(23981): **Doom Message: I_SetRes: Creating 480x320 image.
The next two lines show the native library is loaded successfully by the JVM:
Trying to load lib /data/data/org.doom/lib/libdoom_jni.so
Added shared lib /data/data/org.doom/lib/libdoom_jni.so
So far, so good. Next, the game arguments are displayed:
**Doom Message: Main argv[0]=doom
**Doom Message: Main argv[1]=-width
**Doom Message: Main argv[2]=480
**Doom Message: Main argv[3]=-height
**Doom Message: Main argv[4]=320
**Doom Message: Main argv[5]=-iwad
**Doom Message: Main argv[6]=doom1.wad
This tells us the size of the display, 480-by-20 (landscape mode), plus the name of the game file,
doom1.wad . At this point, the game has successfully loaded and is ready for action (see Figure 7-5).
Figure 7-5. Doom running in the Android emulator
Search WWH ::




Custom Search