Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a name for your enemy type. All your enemies should be the same type of enemy. There will be 3 enemies. Initialize a variable

image text in transcribed
Create a name for your enemy type. All your enemies should be the same type of enemy. There will be 3 enemies. Initialize a variable for an enemy type (Example: "Skeleton") Initialize an enemy counter starting at 1 with the appropriate data type Use the counter to initialize variables for the names of 3 enemies by incrementing the counter by 1 after assigning the name of an enemy(Like the countdown example from the slides) Initialize a variable for each enemy's health. This must be a random integer number between 5 and 15 Initialize a variable for each enemy's attack power. This must be a random integer number between 5 and 10 Initialize a variable for each enemy's armor level. This must be a random integer number between 1 and 3

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

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions