Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Several hundred years ago, humans were nearly exterminated by giants. Giants are typically several stories tall , seem to have no intelligence, devour human beings
Several hundred years ago, humans were nearly exterminated by giants. Giants are typically several stories tall , seem to have no intelligence, devour human beings and, worst of all, seem to do it for the pleasure rather than as a food source. A small percentage of humanity survived by walling themselves in a city protected by extremely high walls. Fortunately, the weapons were invented in recent years found effective to kill the titans. Problem statement As a programmer, you need to build a tower defence game in JAVA which allows the player to protect the residents within the wall from the titans. Basic Requirements Game Interface The Gamo tarted Nonny yet On The Ground Row HOUR Coins 40 1 2 2 50 So So so so so so so 50 50 The Wall Index Choose the weapon (o) you would like to upgrade type a string of integer or hit Enter to stip) Wall 10 unit walls, each unit has 50 HP(Hit points/Health) Whenever any wall unit has it's HP equal to 0 or lower, the player lose Coin The only resource in the game Initial number = 50 coins add 5 coins every hour . Weapon There's weapons on the walls Each wall unit has 1 weapon Weapon has 3 levels, different levels come with different attack points Level 1 = 2 attack points, Level 2 = 5 attack points, Level 3 = 10 attack points To upgrade the weapon to level 1, the player has to pay respective number of coin based the damage of the next level To upgrade the weapon into level 1(attack = 2 points), 2 coins required To upgrade to level 2(attack = 5 points) 5 coins required To upgrade to level 3(attack = 10 points) 10 coins required Visualize the weapons on walls Ground 10 units X 10 units In front of the walls Titans only can position on the ground . Titans There are 2 types of titans Colossus Titan and Armoured Titan They take damage when there's weapon on the lane the titan position at Overlapping Titans printed as "AC" Colossus Titan Only show up on row 9 Show up after 5 hours HP = 50, Attack = 10 points Move left or right randomly . Armoured Titan Only show up on row 0 Show up after 5 hours HP = 100, Attack = 5 points Move closer to walls after every hour (randomly left or right) When he reaches row 9 (in front of the wall), Armoured Titan destroys the weapon on his lane When there's no weapon on the wall where Armoured Titan position at, he moves to closer wall with weapon by 1 unit When he's moving, he won't damage the wall When there's no weapon on the wall, Armoured Titan starts to damage one wall unit, not moving left and right . . Game Rules . The Game started on Hour 0 Print the wall and ground For each hour, the enemy and the player takes turns After enemies' turn, the player will be given options First question: Choose the weapon(s) you would like to upgrade (Type a string of integer or hit Enter to skip) Second question: Do you want to upgrade all walls? (press 1 if yes, press Enter if no) Current coin number: (current coin number placeholder] Third question: How many HP do you want to add up to the wall(s)? Current coin number: (current coin number placeholder] If the player chooses walls in the third question(e.g. the player type 1234 indicating that he/she want to add the HP of wall units 1, 2, 3 and 4.), show the question: How . many HP do you want to add up to the wall(s)? Current coin number: (current coin number placeholder] If the coins are not enough to upgrade all weapons selected, the system will try to upgrade as many weapons as possible Example Choose the weapon (s) you would like to upgrade (Type a string of integer or hit Enter to skip) 1110022229 Not enough money! Not enough money! On The Ground ROW 0 HOUR O 1 Coin: 7 2 The Wall Index 0 1 2 3 4 5 6 7 8 9 50 50 50 50 50 50 50 50 50 50 HP Player's turn Do you want to upgrade all walls? (press 1 if yes, press Enter if no) Current coin number: 7 1 Player's turn How many HP do you want to add up to the wall(s)? Current coin number: 17 765 Your money is not enough On The Ground Row HOUR 2 Coin: 4 78 50 57 56 50 50 50 50 50 50 50 The Wall Index HP Challenges GUI Implementation Hard Game Mode O o Let the player chooses the game difficulties. The above game mode is Easy, make a Hard Game Mode. Multiple Armoured Titan in Hard Game Mode! No overlapping titans in Hard mode(no more combining Armoured Titan, AA and Colossus Titan, CC into AC) Provide faster coin generation speed(Level 0,1 and 2), coin generator in the above game considered level (default), to level 1(generate 10 coins per hour), player need to spend a certain number of coin, to level 2(generate 15 coins), need a certain number of coins too(more than coins required in level 1). O . Add obstacles on the ground for titans to hide Make Armoured Titan tend to move to walls without weapon before arriving the wall Different types of weapons Different types of titan with different behaviours Let the player to be on the site of titans, player decide the numbers and show up timing of titans while the computer try to build the weapon to defeat the player
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