Gameplay software, JAVA Programming

Individual Assignment

Rework Asteroids to have a different gameplay

In the previous assignments, we have developed an Asteroids game. In this assignment, we are going to use the same codebase to develop a different gameplay. The inspiration for this is Osmos, in which you control a circular "ship" that moves slowly through space and bumps into enemy circles. The collision response is that the bigger circle "eats" the smaller circle. To move on one direction, the player's ship expels a tiny fragment of itself in the opposite direction. We will be exploring variants of this different gameplay in this assignment.

Please develop the code in Java Mode. Java Mode means that each class must be in a separate file. Here is some new starting code: that builds Asteroids in Java Mode.

This project is bigger than assignments 3 and 4 and will require to you think through things in advance. You can re-use the structure we have built throghout the term.

Visual Design Matters! Grades will partially depend on how the games looks.

Common Features

  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.

Each enemy ship must be tested for collision with all other ships, including the player ship.

Required Features

  • 0 or 7 or 8 Big Mouth

?  The player ship has a "mouth". This means that the player must be able to rotate the ship.

?  The player ship eats smaller enemy ships that fall into the player ship's mouth. At least test if the circumference point falls within the enemy circle.

?  When the player ship collides with a larger enemy ship, the enemy ship slowly "eats" the player ship incrementally according to the amount of overlap between the two ships. The player ship can get eaten!

?   Enemy ships eat each other according to overlap.

All ships "loop around", as in asteroids.

Posted Date: 2/27/2013 12:02:27 AM | Location : United States

Related Discussions:- Gameplay software, Assignment Help, Ask Question on Gameplay software, Get Answer, Expert's Help, Gameplay software Discussions

Write discussion on Gameplay software
Your posts are moderated
Related Questions
Java has some bugs in its applets. Java team stated that they have zero tolerance over security features and subsequent editions of Java are managing Bug free environment. Some of

Using the above thread program, now create 20 threads in your program and run them. No need to wait for the keyboard in each thread, just print "Hello" and its thread id in each t

Model-View-Controller (MVC) is a design pattern put together to help control change. MVC decouples interface from business logic and data. ? Model: The model having the core of

Determine how many arguments were passed using length property In java, array knows their size by using the length property. By using, length property we can determine how many

can we develop paint user can draw his charcters and images in swing

What are the kinds of computer network according to the distance among nodes? The kinds of computer network according to the distance among nodes are: 1. LAN 2. WAN

Question 1 Explain the data types in Java Question 2 Write a note on StringBuffer Question 3 What is Exception? Question 4 Write a note on stream classes Questi

Two types of bean injections are there:- 1. By setter 2. By constructor

Bi-lingual site for the Mitzpe apiary Project Description: We require a bi-lingual website built in 14 days. The Mitzpe Apiary is a new company that was started by local e

Luminous Jewels - The Polishing Game Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various lum