Reference no: EM131598010
Task 1 Change the applications background color from BLACK to dark gray.
Task 2 Change the title of the application from "Shooting missiles" to "Cuttlefish lunch"
Task 3 Create 3 more enemies of your own choosing. We have provided three icons you may use "shrimp", "snake", and "jellyfish". You need to adjust how the enemies move. We have given two examples and started shrimp for you.
Hints:
Create your new classes.
Added the classes you created to the enemies' array in Board.java.
Adjust how the different animals move on the board.
Optionally comment out the different animals to test each individually.
Task 4: A method exists to detect when an enemy contacts the cuttlefish. Adjust this method to print a message (JMessageDialog) containing the words. "Game Over, score {score}" After the user clicks ok, close the program using a System.exit(0);
Task 5: Change the icon of the cuttlefish to another PNG you find on the internet. It should look good when the game is executed.
Task 6: A method exists to detect when a missile contacts an enemy. When this occurs increment the score by 10 and delete the enemy.
Task 7: Improve the collision detection so it is more accurate. You should have seen that the missiles and enemies do not actually touch each other and the cuttlefish.
Attachment:- Practical2.zip