
M3G Chapter 5. The Beginnings of a FPS


From:
  Java Programming Techniques for 2D, 2.5D, 3D, and Network Games

  Dr. Andrew Davison
  Dept. of Computer Engineering
  Prince of Songkla University
  Hat yai, Songkhla 90112, Thailand
  E-mail: dandrew@ratree.psu.ac.th

  Web Site for the book: http://fivedots.coe.psu.ac.th/~ad/jg


If you use this code, please mention my name, and include a link
to the book's Web site.

Thanks,
  Andrew


============================
GunnerM3G

GunnerM3G requires the Mobile 3D Graphics API which
is available in version 2.2. of the J2ME Wirelss Toolkit (WTK22).
It can be downloaded from 
http://java.sun.com/products/j2mewtoolkit/

GunnerM3G consists of 10 Java files in the GunnerM3G\src\ subdirectory:

    GunnerM3G.java, GunnerCanvas.java, AnimBillboard.java
    ImageSquare.java, MobileGunCamera.java, ShotManager.java
    PenguinModel.java, TiledFloor.java, ShotSounds.java,
    PenguinInfo.java

and 4 image files and 4 directories in the GunnerM3G\res\ directory:

    hit.gif, penguin.gif, gun.gif, shot.gif
    floor\              // 4 alternative textures for the floor
    sounds\             // 6 WAV files (5 explosions, 1 laser beam)
    explo\		// 6 explosion images for the animated explosion
    sky\                // 3 alternative textures for the background

------
Compilation and Execution (using WTK22's KToolbar)

Create a new project called GunnerM3G, with the MIDlet
class name GunnerM3G.

Make sure to use the CLDC 1.1 configuration (so floats can be 
manipulated) and the Mobile 3D Graphics for J2ME (JSR 184) API.

Copy the Java files in src\ to WTK22\apps\GunnerM3G\src\ 

Copy the image files and directories in res\ to WTK22\apps\GunnerM3G\res\

Build and run.

---------
Last updated: 4th December 2004
