Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Upload your java file(s) to Ecampus or Present the program to the class or demo to instructor during open lab. Complete your game that

Upload your java file(s) to Ecampus or Present the program to the class or demo to instructor during open

Upload your java file(s) to Ecampus or Present the program to the class or demo to instructor during open lab. Complete your game that was begun in Homework 4. It should have the following components: 1. Introduction screen with ASCII art and text describing your game and theme 2. Ending screens for player win and lose 3. Enemies should be moved into an ArrayList 4. Enemies can attack the player and vice versa 5. Enemies will move toward the player 6. Items should be added to your World such as health power-ups 7. Adding color is optional but encouraged Here is some code that will help: // create an ArrayList of Enemy class and add some objects // this belongs at the top of your program after you have created your player object ArrayList Enemies = new ArrayList (); Enemies.add(new Enemy ("Orc")); Enemies.add(new Enemy ("Dragon")); // step through Enemy ArrayList and attack if adjacent to player // this belongs in the gameloop after the player has moved for (int i=0; i

Step by Step Solution

There are 3 Steps involved in it

Step: 1

import orgfusesourcejansiAnsiConsole import javautil public class game public static final String CLS u001b2Ju001b11H public static final String RED u001b311m public static final String GREEN u001b321... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions