Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please assist Suppose that you are creating an object-oriented design for a 2D arcade game. Everything on the screen is a game object and has

image text in transcribedplease assist

Suppose that you are creating an object-oriented design for a 2D arcade game. Everything on the screen is a game object and has a height and width. Some game objects are capable of moving and some are capable of shooting - these behaviours are independent of one another. So there are: - Stationary, non-shooting game objects - Moving, non-shooting game objects - Stationary, shooting game objects - Moving, shooting game objects Different game objects can shoot and move in different ways. For example, in the case of moving objects there are vertically moving objects and horizontally moving objects. a) Give two different designs which model this scenario. For each design provide a UML class diagram and a brief description which clearly explains your approach. (12 marks) b) Compare your two designs by describing their advantages and disadvantages, and provide a justification for the one that you would ultimately choose. (8 marks)

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

More Books

Students also viewed these Databases questions

Question

Describe how to train managers to coach employees. page 404

Answered: 1 week ago

Question

Discuss the steps in the development planning process. page 381

Answered: 1 week ago