THE WEINER WARRIOR

download  ·  developers  ·  faq

 

DOWNLOAD THE SOURCE

---

 

You are free to redistribute, to modify and to use the Meat FighterTM source code in your own programs at no cost as described by the GNU General Public License.

 

Meat FighterTM was designed with future projects in mind.  The full-screen animation code, the sound effects and music code and the event timing code was placed into a separate gamingtools package.  For your convenience, it can be downloaded as gamingtools.jar.  Here is the gaming tools javadoc bundled as a zip file.  You can view it online here.

 

The full source code for Meat FighterTM and the gaming tools library can be found here.  Make sure you're equipped with Java version 1.4.1_02 or above.

 

Check out my Java Developer's Journal article for a tutorial on how to use the gaming tools library and for an explanation on how the code works.  The page of code listings does not appear in the printed magazine due to space limitations.  You can download the missing page here.  Or view the listings online with one of the following links:

 

Listing 1

Listing 2

Listing 3

Listing 4

 

 

CODE EXAMPLES

---


INVADERS

   

This example demonstrates the first steps toward a Space Invaders clone.  It simply moves the invaders from left to right, alternating between two sprites. 

 

Binary: invaders.jar

Source: src_invaders.zip or Invaders.java

 

To launch this example, place invaders.jar in the same directory as gamingtools.jar and type: java -jar invaders.jar

 

 

     

PARAMECIUM

   

Enter the microscopic world of digital paramecium in this demonstration of sprite rotation.

 

Binary: paramecium.jar

Source: src_paramecium.zip or Paramecium.java

 

To launch this example, place paramecium.jar in the same directory as gamingtools.jar and type: java -jar paramecium.jar

 

 

 

 

BÉZIER

 

This example demonstrates how to implement Bézier curves for motion control.

 

Binary: bezier.jar

Source: src_bezier.zip or Bezier.java

 

To launch this example, place bezier.jar in the same directory as gamingtools.jar and type: java -jar bezier.jar

 

 

 

LINKS

---

 

*      Full-Screen Exclusive Mode API: http://java.sun.com/docs/books/tutorial/extra/fullscreen/

*      Java Image I/O API: http://java.sun.com/j2se/1.4.1/docs/guide/imageio/

*      The VolatileImage API User Guide: ftp://ftp.java.sun.com/docs/j2se1.4/VolatileImage.pdf

*      Java Sound API: http://java.sun.com/products/java-media/sound/

*      Java 3D API: http://java.sun.com/products/java-media/3D/

*      Java Media Framework: http://java.sun.com/products/java-media/jmf/

*      Java Native Interface: http://java.sun.com/docs/books/tutorial/native1.1/

*      JSR-134: http://www.jcp.org/en/jsr/detail?id=134

*      PlayStation 2 Linux Community: http://playstation2-linux.com/

*      Xbox Linux Project: http://xbox-linux.sourceforge.net/

*      Nintendo Entertainment System Architecture: http://www.classicgaming.com/epr/nintendo/nes.txt

*      Swing Sightings Volume 3: http://java.sun.com/products/jfc/tsc/sightings/S03.html

*      Java Gaming: http://www.javagaming.org

*      Video Game Music Archive: http://www.vgmusic.com/

*      Drawing Tablets: http://www.wacom.com/

*      History of Street Fighter:  http://www.videogames.com/features/universal/sfhistory/

 

FURTHER READING

---

 

        

 

        

 

        

 

        

 

          

 

More game programming books…