★ wanayoo — archive 1999 http://javaboutique.internet.com/asteroids/Nouvelle recherche | Portail wanayoo
internet.com logo To JavaBoutique Home

 Java News
 Latest Applets
 Applet Categories
 Applet Index
 Applet Help
 Submit Applets
 Other Resources
 How-To Java
 Java Reviews
 Java FAQs
 Java Forum
 Java IDEs
To Webdeveloper.com
 Mecklermedia
 Internet.com
 Magazines
 Trade Shows
 Advertise
 Corporate
 Information
 Search
 Subscribe

webreference.com

Search Engine Watch

The JavaScript Source

All Net Rearch -- in one place

Asteroids.java


[Note: Play this game with extreme caution! Can be very habit-forming!!]
Use the keyboard controls described below to maneuver your ship, destroying as many asteroids as you can while avoiding collision with them. Also watch for the flying saucers armed with guided missles.

If you warp into hyperspace, your ship will momentarily disappear then reappear on another part of the screen, gradually fading in. During this time the ship is invunerable. Likewise, when your ship is destroyed, a new one will appear in the center of the screen. You can still maneuver and fire during this time so if you are in imminent danger, you have a couple of seconds to get out of it.

Controls
SStart Game PPause Game
Cursor LeftRotate Left Cursor DownReverse Thrust
Cursor RightRotate Right Cursor UpForward Thrust
SpacebarFire Cannon HHyperspace
MToggle Sound* DToggle Graphics Detail*
*Note: If the game appears to run slowly on your machine, try turning sound and/or graphics detail off. This will not affect game play.


Usage: Download the following files and place them within your HTML directory:
Source: Asteroids.java Classes: Asteroids.class and AsteroidsSprite.class
Sounds: crash.au, explosion.au, fire.au, missle.au, saucer.au, thrusters.au and warp.au

Java Source: Asteroids.java

HTML Source:

<applet code="Asteroids.class" width=700 height=400></applet>

Author: Mike Hall


www.searchenginewatch.com



Copyright 1998 Mecklermedia Corporation.
All Rights Reserved. Legal Notices.