Develop a visual design in java, JAVA Programming

Player Ship Appearance:

• Your ship must be either a nice-looking sphere (left image above), or a nice-looking sphere with a "mouth" (middle image above), depending on variant.

• For mouth ships, the mouth gap must be no more than 3/4 of the diameter of the ship. The middle image above shows a ship with such a mouth.

• The mouth can be any shape. I have used a cirle in the images because it was easy to draw.

• Mouth collision: Test if the point on the circumference is within the enemy ship's circle. The right image shows a small yellow star where the circumference point would be.

Player Ship Motion:

• Your ship moves by expelling tiny spheres opposite to the direction of motion. As Isaac Newton said: Every action has an equal and opposite reaction.

• The mass of the player's ship is equal to its area. Expelling small masses decreases the mass of player's ship, and thus its area.

• Clicking the mouse left button sets the direction in which the mass is expelled. When the mouse is pressed, construct a vector from the player's ship to the mouse location.

• The mass expelled is 1% of the mass of player's ship.

• The expelled masses join the collection of masses floating around in the play area. That is, they become enemy ships!

There are many instances of an enemy ship in the play area. Each enemy ship interacts with all of the rest of enemy ships and the player ship.

Enemy Ship Appearance:

• Each enemy ship is a circle.

• Each enemy ship starts with a random area.

• Enemy ships are red if bigger than the player's ship, and blue if smaller.

Enemy Ship Motion:

• Each enemy ship starts with a random velocity.

• Enemy ships drift passively.

The primary variations of this game are how the enemy ships in the scene move and respond.

Posted Date: 3/9/2013 2:46:39 AM | Location : United States

Related Discussions:- Develop a visual design in java, Assignment Help, Ask Question on Develop a visual design in java, Get Answer, Expert's Help, Develop a visual design in java Discussions

Write discussion on Develop a visual design in java
Your posts are moderated
Related Questions
Aspect-Oriented  Programming  (AOP)  represents  OOP  (Object  Oriented  Programming)  by  giving  the developer to dynamically change the static OO model to make a system that can

The design of the website will be left to the individual student. The website must be written only in xml, displayed in xhtml using transforms and xsl for styling elements. Javascr

Develop a GeoNetwork Template Project Description: Want a personalized GeoNetwork Template with the consideration of the logo included to this proposal and its colors. The ba

Explain the term Event Handler? An event handler is a command that calls a function while an event happens, like as the user clicking a button.

Cadence Design Systems:   Role Working on tickets including debugging of unix based applications Installations of unix based tools/utlity Installation

Develop a Client/Server (MySQL) student record application Project Description: I need a client/server application with a MySQL backend database. The prototype could interfac

What is a Relational Database? Give the names of any three RDBMS software? Database consist of two or more then two tables are called Relational database. Oracle dabatbase S

Describe the Class or static Members ? A method or a field in a Java program could be declared static. That means the member belongs to the class rather than to an individual

The typical use of the roster class is to display a tree view of groups and entries along with the current presence value of each entry. As an example, see the image showing a Rost

Need java programmer for an assignment "Prepare a program that will accept a sequence of file names as command-line arguments. These files will consist of ASCII text representin