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
Write names of the DoS attack's phases? DoS (Denail of service): DoS attach has in total 3 kinds of phases and below they are listed: 1. Search 2. Arm 3. Attack

I need to code using java in netbeans for my dissertation which is in data mining with privacy preserving of sensitive rules or items using association rule hiding

When multiple threads working, Synchronization is to lock a method for a certain object.

Liferay Especialist and Java Programmer Project Description: We require to make a full functional Portal with online tools. JSF, Java, Portlets, Skills required: CSS

What is an abstract class? Abstract class must be extended/subclassed (to be useful). It serves as a template. A class that is abstract may not be instantiated (ie. you may not

The Application context module makes spring a framework. This module extends the concept of BeanFactory, giving support for internationalization (I18N) messages, application lifecy

Need to develop a Fantasy football Project Description: I am seeking to build a Fantasy football website. i already have an example of existing website. i want the exact same

Machines should have Java interpreter for the Java byte code to get implemented. Linking is a very simple process and this feature helps while developing applications. Java compile

Each time an object is operated in Java, it goes into the area of memory named as heap. The Java heap is named the garbage collectable heap. The garbage collection may not be force

1. Which of the following are not valid Java identifiers, and why? (a) wolVes (b) United(there is only one) (c) 87 (d) 5 3 (e) Real ale (f) isFound?by 2. A class Television