Back to home page

This is a classic arcade-style Asteroids game that I made for fun many years ago. It was my first project that really dealt with graphics in Java. I had some "grand" plans which of course got put on hold as other projects came along. The large pane of unused space on the right side of the applet was reserved for more UI elements that never got made.

The applet will tell you what to do for the most part. There are some hidden controls too:


This applet requires Java Runtime Environment 2 or higher to run, available from http://java.sun.com/


February 7, 2005, 9:28 am
Found a copy of the good version from the school computer. This was the best working version as of November 11, 2004. Note to self: don't erase this again.

February 5, 2005, 12:32 pm
Accidentally erased a good version of the game, and too far away to post the brand new version. This older version has been restored - no missiles, no timer. Sniff.

November 11, 2004, 6:53 pm
The oral certainly went pretty well...
Now the missile can automatically acquire new targets if the initial one is destroyed. This makes them much more useful. Missiles without targets will self-destruct.

November 10, 2004, 5:51 pm
Vastly improved missile accuracy. Now it does not orbit nor go crazy! The only problem is that each missile can only attack one target, and disappears if the target disappears. This is easy to fix... but now I should start working on tomorrow's oral presentation.

November 9, 2004, 5:35 pm
Created the ability to shoot missiles from the ship. The missiles supposedly move toward a target, but apparently they prefer either orbiting or going crazy most of the time. I know the technology sucks for now, but I'll fix it.
For now, I have to study for the physics exam tomorrow. Tah tah!

November 4, 2004, 7:15 pm
So... hungry...
Just some minor changes in the code, added lots of comments (which are of course not visible in the applet), possibly some optimizations regarding objects, graphics, auto frame rate (again) and the like.
This is about as good as I can get at this stage. Now I can start adding some of the fancier stuff (as if this isn't fancy already).

October 31, 2004, 6:16 pm
Happy halloween!
Yes... fixed other minor details for auto frame adjust (you see that it's been giving me a bit of trouble... but it's worth it.)
Also, made a better collision detection mechanism that works well on slower computers.
Stopped stars from twinkling, mainly to let the game run faster.

October 23, 2004, 2:34 pm
Made game intro and death screens look better, fixed a few minor details for auto frame adjust.

October 21, 2004, 3:09 pm
Added little lines to show ship's acceleration, then changed the way the ship handles turns and acceleration.

October 21, 2004, 2:25 pm
Added "key calibration" feature, so the player can define keys that are comfortable to use.

October 19, 2004, 2:31 pm
- fixed problems caused by auto frame adjust
- adjusted speeds for better game play
- reunited frames into one big image

October 18, 2004, 9:39 pm
Added "auto frame adjust" so that game runs at the same speed for all computers.

October 13, 2004, 3:32 pm
I'm late for my tutorial... anyway.
- made the frames look better
- made stars look better
- addressed a "garbage" issue

October 12, 2004, 11:26 am
- Fixed a bug that caused the game to crash when the ship dies (only occurred with Sun's java platform)
- Created independent classes for every object (ship, rock, bullet)
- Added frames and some images for play area.

October 7, 2004, 3:46 pm
Changed event handlers to comply with Java 1.1. It works with Sun's java platform and should not have any problem with Microsoft's.

20 novembre 2002, 9:21 pm
Des petits trucs ajoutés, "r" pour tirer Rapidement, "+" pour plus de balles ?la fois, "-" pour moins de balles.

30 octobre 2002, 4:25 pm
Ca fait longtemps... Bon, l'écran ne cligne plus, c'est mieux pour tes yeux, mais en même temps, le jeu est ralenti. Ce sera probablement la dernière version de ce jeu-l?

15 juin 2002, 10:42 am
C'est suppos?d'être plus efficace, on retourne ?l'arme pas très puissante, quelques changements pas évidents. Tu ne trouveras peut-être pas de nouvelles versions avant septembre, parce que :
1. Mon ordinateur se trouve maintenant dans une grosse boîte
2. Je serai soit ?Montréal ou en Chine.
Donc, amuse-toi bien pendant ces quelques mois.

14 juin 2002, 3:27 pm
La maudite bogue est enfin trouvée! Maintenant le jeu ne gèle plus pour aucune raison. En plus, le vaisseau peut arrêter automatiquement (ne flotte pas dans l'espace infiniment), un petit ajustement subtil sur le nombre de roches, peut-être il y avait d'autres choses.

9 juin 2002, 6:44 pm
Le jeu prend SUPPOSÉMENT moins de mémoire, donc je PENSE qu'il est SUPPOS?d'aller UN PEU plus vite sur CERTAINS ordinateurs...

9 juin 2002, 4:32 pm
Je n'ai aucune idée ce que j'ai chang?

6 juin 2002, 8:54 pm
Plus de changements majeurs de structure dans le code, maintenant il faut absolument CLIQUER pour commencer une nouvelle partie, en plus, il faut TAPER quelque chose pour commencer un niveau. Je suis maintenant prêt ?faire des dessins.

6 juin 2002, 4:57 pm
Des changements majeurs de structure dans le code, pas vraiment d'effets sur le fonctionnement du jeu.

30 mai 2002, 9:29 pm
Un gros changement qui ne demande pas d'effort. Maintenant tu as un super-vaisseau arm?de "Omega galaxy sweeper". Il y a, malheureusement, une bogue. Quand tu es rendu aux plus hauts niveaux, les roches commencent trop proches de toi pour que tu puisse réagir. Je vais essayer de l'arranger.

29 mai 2002, 8:41 pm
Un pas de plus vers mon succès... maintenant tu peux mourir si tu frappes une roche. Fais attention.

26 mai 2002, 8:23 pm
Quelques changements subtiles... un peu moins d'étoiles et une petite pause ?la fin de chaque tableau.

26 mai 2002, 5:00 pm
Quelques changements mineurs, il y a des étoiles (c'est pour ça l'écran fatigue les yeux), puis un sant?o-mètre (la sant?ne change pas).

25 mai 2002, 4:31 pm
Tu peux enfin tirer sur les roches!!! Amuse-toi bien.

24 mai 2002, 10:01 pm
Quelques affaires additionnelles... ne paraissent pas du tout.

24 mai 2002, 8:53 pm
Les roches bougent !!!

23 mai 2002, 9:56 pm
Ouais ! J'ai mis TROIS roches!!! Rien de nouveau.

23 mai 2002, 9:43 pm
Nouvelle version !!! J'ai mis UNE ROCHE !!! Bien sûr, la roche ne bouge pas et on ne peut rien faire. Désol?

23 mai 2002, 5:30 pm
Petite note : les niveaux sont l? mais tu ne peux rien faire.
Les roches sont en partie présentes dans la mémoire, mais elles ne sont pas dessinées.
Une utilit?pour les vecteurs : le mouvement du triangle, des balles et des roches est gér?par des vecteurs (grandeur et orientation, ou des composantes)

Amusez-vous bien !!!