Game Development Reference
In-Depth Information
Sound classes : They work in concert with the sound and music handlers to provide
high quality sound to the game.
Native interface class : It contains the native method implementations that allow
the Java code to talk to the C code, plus C-to-Java callbacks for communication in
the opposite direction.
Next, we looked at the native code where we made simple changes to the original C code to insert C
to Java callbacks. These callbacks are used as part of the JNI layer to cascade graphics information, video
buffers, and sound/music requests back to Java. Finally, we looked at compilation and testing. Here, we
covered the Makefile required for building the DSO as well as how to set up the game project file system
for testing on the emulator.
In the next chapter, we continue with 3D shooters by looking at the next great PC shooter, Doom.
That chapter will show you how easy it is to bring this complex game for the PC to Android in record
time with minimal changes.
Search WWH ::




Custom Search