Answered step by step
Verified Expert Solution
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:
Background Sketch size must be pixels wide and pixels high. It must have sections, one
to display text ie text section while the other one for the game ie game section The lower bound
of the game section is named the ground. For full marks, the game section must include at least
static shapes drawn to add visual interest.
Launcher and Asteroid Both of these must be drawn as a composite shape using at least different
shapes and must include a visible change in colour.
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.
Game dynamics
In the game section, the user should be able to see the launcher and asteroid. You may add
more game criteriaconditionscomponents
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,
The missile should disappear.
The asteroid should disappear, and a new asteroid should appear at a random
location from the top with random speed and random direction.
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.
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.
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.
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.
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 WCOM course, will be extensively investigated.
Breaking any constraints carries a penalty of marks.
Refer to following constraints:
You cannot define your own classes or use builtin java classes.
You cannot define your own functions. You can only use builtin 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started