Gravity




Applet Name: Gravity
Applet Source: Figure.java, Friend.java, Gravity.java, Planet.java, Ship.java, TakesABullet.java, Vapplet.java
Imports: java.lang, java.awt, java.io, java.net, java.lang.Math, java.applet, java.util,
Features: image, mouse, keyboard, audio
Author: EarthWeb LLC/Gamelan

Usage Guide:

Gravity is our Java version of a shoot-'em-up arcade-style game. Use the keyboard command keys to rotate and move the ship as well as fire or jam on the brakes. The command-key breakdown follows:

::Play Mode:: z rotate ship left x rotate ship right , thrust . fire [space] shields [tab] brakes e enter Edit Mode [mouse] enter Edit Mode

::Edit Mode:: [mouse] draw walls/bring into focus the wall or target nearest to mouse cursor a add enemy target to the wall in focus (where the red dot is) d delete the target or wall in focus

One exciting feature of Gravity is its ability to allow the user to build/ edit the game world visually -- right on the playing screen. To toggle Edit Mode, hit the "e" key. Once in Edit Eode, draw walls by clicking, releasing, then dragging the mouse in the direction you wish. Click again to place the wall. Now move the mouse close to any wall. You will see a red dot appear. This dot is the proposed placement of a new enemy target as well as an indicator of which wall is currently "in focus." Hit the "a" key to add this target or "d" to either delete an added target or delete the wall which is in focus. Hit "e" again to exit Edit Mode.

Play Controls: "z","x"=turn ship, "."=engine, ","=fire, "e"= edit mode on/off
Edit Mode Commands: mouse=draw lines, "d"=delete line, "a"=add enemy,
"l"=load world, "L","S"=load/save directly to/from filesystem




Return to index.