Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment, you will be creating your own mini shoot the asteroid game. You can customize your game as long as the following criteria

In this assignment, you will be creating your own mini shoot the asteroid game. You can customize your
game as long as the following criteria are satisfied:
1. Background Sketch size must be 900 pixels wide and 700 pixels high. It must have 2 sections, one
to display text (i.e. text section) while the other one for the game (i.e. game section). The lower bound
of the game section is named the ground. For full marks, the game section must include at least 4
static shapes drawn to add visual interest.
2. Launcher and Asteroid Both of these must be drawn as a composite shape using at least 5 different
shapes and must include a visible change in colour.
3. Text The minimum text displayed in the text section should be as shown in the video, you may choose
to add extra information. This must include the number of asteroids destroyed.
4. Game dynamics
In the game section, the user should be able to see the launcher and asteroid. You may add
more game criteria/conditions/components.
The launcher remains on the ground (x axis in the demo, you can choose to have a different
orientation for the game which will affect the asteroids movement as well). The launcher moves
using keys (the left and right arrow in the demo but you can select your own). You cannot
substitute mouse presses with key presses.
Pressing the space bar (or a different key of your choice) should generate another game object
named a missile. The missile should be relatively smaller than the size of the launcher. The
missile travels straight and appears from the centre of the launcher.
An asteroid should appear at a random location from the top of the game section (at a random
location, with random speed, and random direction), and move towards the ground
i. If the asteroid moves off the screen or hits the ground, a new asteroid with a random
position, speed and direction should appear from the top of the game section.
ii. If the asteroid is hit by a missile,
1. The missile should disappear.
2. The asteroid should disappear, and a new asteroid should appear at a random
location from the top with random speed and random direction.
3. The stats should be updated in the text section to show that the hit was
successful.
iii. If the asteroid hits the launcher, the game ends. You can choose to implement a
different game end criterion, but your game must detect and indicate that the launcher
was hit by the asteroid.
5. Game end There should be a finite end to the game. In the demo video this is done using launcher
being hit by the asteroid, you may choose to use the number of asteroids hit or other criteria of your
choosing. This cannot be implemented using a mouse or key press.
6. Restart Once the game ends, there should be an end screen that displays stats and a mechanism,
using a key press for the user to restart the game. Refer to demo video.
7. Scalability The game should be scalable, which means changing the size of the sketch should
automatically scale the launcher, game and text sections, asteroid movements etc. Refer to demo video.
8. Creativity The demo video gives an extremely basic version of what the final game should look like,
mainly focusing on game dynamics. The creativity component is for students to take the idea and make
it a fun and creative game by adding text messages, elements of visual interest and dynamic
components using programming constructs covered in class.
Constraints
Using any coding concepts not covered in WCOM1000 course, will be extensively investigated.
Breaking any constraints carries a penalty of -25 marks.
Refer to following constraints:
You cannot define your own classes or use built-in java classes.
You cannot define your own functions. You can only use built-in functions like setup, draw,
keyPressed etc.
You cannot use any extra processing libraries or plugins.
You cannot use multiple tabs or multiple files.
You cannot use transformations such as rotate, translate, scale etc.
You cannot use images.
You cannot import fonts do it in java
note:-You must do it in java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro PowerShell For Database Developers

Authors: Bryan P Cafferky

1st Edition

1484205413, 9781484205419

More Books

Students also viewed these Databases questions