Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For this question, please do #2 and create a class diagram. Create a document: Create a list of 6 bad guys for the next projects
For this question, please do #2 and create a class diagram.
Create a document: Create a list of 6 bad guys for the next projects game; a primitive version of the game can be played here http://www.brackeen.com/iavagamebook/tilegame.inlp (internet connection required for this demo). From the demo you can see that a fly and a caterpillar already exist. Assume that these bad guys extend from the class BadGuy. Make sure that 1 extends from Fly (for example something like SuperFly extends Fly) and 1 extends from Caterpillar. The rest should extend from the class BadGuy, or extend from a new bad buy you created (for example SuperCockroach extends Cockroach). Be sure to describe how each of the 6 of your bad guys behaves (how does it move? Does it take more than one hit to defeat it?) NOTE: If you cannot play the above game due to security settings of your browser (very likely) that is fine. Imagine a platformer game similar to Mario (in almost every way, including jumping on their heads to defeat them), and create your bad guys based on that. 1. 2. Design a class diagram: Using the list from above, create a class diagram to represent your bad guy classes. The root class to start with is BadGuy. You may make any assumptions to what BadGuy contains in it (for example, BadGuy could have a int hits variable that specifies how many hits a bad guy can take before it is defeated)
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