Google Answers Logo
View Question
 
Q: Spaceship - endo ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Spaceship - endo
Category: Computers > Programming
Asked by: open0102-ga
List Price: $150.00
Posted: 11 Jun 2003 02:35 PDT
Expires: 11 Jul 2003 02:35 PDT
Question ID: 215945
Game details:  
Alien spaceships travel at random speeds and in random directions  
across the top of the screen in L -> R or R -> L sequence.(there may  
be more than one space ship in view at any one time). The Aliens have
one objective: to drop bombs on your fighter plane. you have one  
objective: to blast the Aliens with your your fighter plane.  
the Aliens drop their bombs as ofter as they wish and you must move  
your fighter plane so as to avoid being hit.  
  
The button of the screen display a fighter plane so you can shoot down
a Alien.  
The L -> R position of which is controlled by the player's mouse.  
(shooting by pressing the LEFT mouse button.  
  
Additional Information:  
This game must be able to: Start a new game, show score, restore a  
Previously saved game, save a current game and Exit.  
NOTE: the able to save games is to be only available in the
application
execution, not applet version. A save game does not store the position
details of the players, it only stores the current score which can  
then be added to next time the games is loaded.  
  
set the speed of the game (1 for beginner up to 10 for super expert)  
set the duration of the game (in minutes). the default should be 2  
minutes.  
set the number of Aliens on screen at any time (from 1 up to 10 )  
Turn scoring on and of - This option is to allow the player to enter  
his or her name (only if running as an application).  
  
Show a list of the top ten players and their scroes but have this  
option greyed out if the scoring option is turned of or if running as
an Applet.  
  
Display a brief of instructions as to show how to play the game.  
  
use graphics and sound   
this game is to be runnable as both an applet and an application 
------------------------------------------------------------------
price is negotiable
or you can just create the program that suitable for this price 

thank you for you time 
Mark

Request for Question Clarification by endo-ga on 11 Jun 2003 02:58 PDT
Hi,

Thanks for the question, I'll work on it this weekend, is that ok?

Thanks.
Regards,
endo

Clarification of Question by open0102-ga on 11 Jun 2003 03:13 PDT
Hi Endo 
thank very much for taking this question 

" I'll work on it this weekend, is that ok? "

that is absolutely fine 

My appreciation in advanced 

Mark

Request for Question Clarification by endo-ga on 14 Jun 2003 04:46 PDT
Hi,

Just to let you know that I haven't forgotten about your program, I
just moved houses and have to set up my computer. As soon as my
computer is set up, I'll start working on it straight away. Thanks.

Regards,
endo

Request for Question Clarification by endo-ga on 15 Jun 2003 21:19 PDT
Hi,

Sorry for taking so much time. Also sorry, I could not really use the
code you gave me.

Just a little update to let you know what I've done so far.


>Alien spaceships travel at random speeds and in random directions
across the top of the screen in L -> R or R -> L sequence

Done, also travels vertically down screen.


>one objective: to drop bombs on your fighter plane. you have one
objective: to blast the Aliens with your your fighter plane. the
Aliens drop their bombs as ofter as they wish and you must move your
fighter plane so as to avoid being hit.

Done.
   
>The button of the screen display a fighter plane so you can shoot
down a Alien. The L -> R position of which is controlled by the
player's mouse. shooting by pressing the LEFT mouse button.
 
Done, I've also made the fighter plane move vertically.  

>This game must be able to: Start a new game, show score

Done.

>restore a previously saved game, save a current game

Still to do.

>and Exit.   

Done.

Everything after your note is still to do, but it's not very
difficult, I'll try and finish everything tomorrow.

Could you please give me the sounds you want to use? One sound for the
fighter or enemy shooting, one sound for the fighter or the enemy
being destroyed. Thanks.

Regards,
endo
Answer  
Subject: Re: Spaceship - endo
Answered By: endo-ga on 17 Jun 2003 11:09 PDT
Rated:5 out of 5 stars
 
Hi,

I've put a lot of work into this, about 25 hours.

It's not all perfect, but then you said you didn't want it to be. :)
Anyways most of what you wanted works. I thought you might want to
have a go at creating the high score table functionality yourself, to
see if you understand how Java IO works (reading and writing to
files). There are examples in the code on how Java IO works.

Also I haven't tested it as an applet, but hopefully it should work.
:)

I've also commented the code in good detail, but if you have any
questions at all on what something means or what it does, please don't
hesitate to ask. Also if you want me to add more features, please
don't hesitate to ask.

Try playing around with it, adding more features if you want and try
making a scrolling background.

Thanks again for your question.

Regards,
endo

You can find the source code, images and sound files here:
http://membres.lycos.fr/dbky/open0102/

You can find the compiled classes here:
http://membres.lycos.fr/dbky/open0102/classes/

Just right click on the files and choose 'save target as' to save them
to your hard drive.

N.B. I didn't write BaseAudioStream.java myself, so it's not commented
as much, but you don't need to really understand, just know how to use
it, there are lots of examples in the code.

Request for Answer Clarification by open0102-ga on 19 Jun 2003 04:54 PDT
thank you very much for your time 
          " there are looking good"
Unfortunately, I have a very bad cold now (In New Zealand is Winter now) 
so I will take good look when I get over

Clarification of Answer by endo-ga on 19 Jun 2003 04:59 PDT
Hi,

Hope you get better soon, please let me know when you have a chance to look at it.

Thanks.
endo
open0102-ga rated this answer:5 out of 5 stars
good work

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy