Question: The RobotDodge game has been progressing well, now the client has seen what we have produced they want to make some new additions. You have

The RobotDodge game has been progressing well, now the client has seen what we have produced
they want to make some new additions. You have been tasked with designing and implementing these
changes.
The new features are:
The player should have lives that are lost when they collide with a Robot.
Their lives should be shown on the screen. Something like small heart pictures, drawn on
the edge of the screen.
SplashKit.CirclesIntersect
Start with 5 lives.
Quit the game with the player who has no lives left.
The Player should have a score, that increases as time passes.
Show the score somewhere on the screen.
The player should get 1 point for every second that passes. So, the longer they survive the higher
their score.
The Player should be able to shoot a bullet.
Clicking the mouse will shoot a bullet from the player toward the mouse.
The bullet should be able to destroy one robot, then disappear itself.
The bullet can be drawn as a circle. (feel free to pick any color)
Here is some guidance on how to approach this task, this outlines the expectations for the design document
and the code.
1. Create a UML Class Diagram for the solution. You can start by copying the existing design, then add
in the new responsibilities that you want.
We recommend that you use Lucidchart for this. You can get a pro account with your Deakin email
address.
2. Think carefully about where to allocate the different responsibilities.
3. Splashkit includes a class that you can use to keep track of time. Here is some example
code that works with a Timer:
4. Review how the Robot targeted the Player for ideas on the bullet.
5. You can test circle collision using.
The design document needs to communicate how bullets have been added to the solution. You will
need to provide the overall UML Class Diagram along with accompanying descriptive text. You can
also include other sequence diagrams to aid your communication. For the report you want to focus on
the following:
The details of how the bullet works.
This is the most complex part of the design. Focus on the following:
How are bullets modelled
How do bullets move?
How do bullets destroy robots?
Timer
Write a report for a knowledgeable developer. Write it as if you were describing this to the unit's
teaching staff. Remember to keep in mind what you are aiming to communicate: which in this case is
how you changed the design to incorporate bullets. So, avoid explaining concepts that the reader will
already understand, and focus on communicating your solution.
It would be a great idea to share your design with the teaching staff before you start coding it. Email it to
your tutor and ask for their feedback, they should get back to you quickly with some ideas. Once you
have the green light, go ahead and code up your new additions!
When you are finished with the design document and the code, submit your work to OnTrack for feedback.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!