MediaTest
From Gardenwiki
The MediaTest is a showcase of the many media classes in the Three Rings libraries. I wrote it to find out what can, and sometimes can't, be done with a MediaPanel. It provides many examples of how to use Animations, Paths, Labels, Sprites, and mouse adapters. It also includes a set of tests that seem to expose glitches in either the libraries or my understanding of the libraries.
Test Groups
The test are grouped into a few categories:
- Basic - Low-level graphics and static images
- Animations - Animations of Sprites and Mirages
- Paths - Movement of Sprites
- Mouse Adapters - Interaction with the Sprites
- Glitches - Tests that animate poorly or behave unexpectedly
Installing
The project files can be downloaded via anonymous CVS into your Game Gardens project directory:
cvs -d :pserver:anonymous@skovran.com:/usr/local/cvsroot co mediatest
The usual Game Gardens build process applies:
cd mediatest ant
All of the interesting code is in src/java/test/TestPanel.java.
Running
The MediaTest is run as a local Game Gardens game:
# Start server in one terminal ant server
# Start client in another terminal ant client -Dusername=Me

