Simple java game, ASAP

Completed Posted Mar 9, 2015 Paid on delivery
Completed Paid on delivery

ProgrammingAssignment2 APPLICATION for TREASURE HUNT GAME using SWING

Build a simple GUI game called Treasure Hunt. A treasure (50X50) is hidden somewhere in the SWING Window (500X500) where (0,0) is the top left corner of the Window, and the player will play to try to find it, not by clicking the mouse button, but by moving the mouse inside the Window. Depending on how close the mouse is to the treasure, you will display a message at the mouse location so that the player can find the treasure and win the game.

The MouseMotionListener interface is perfect for the Treasure Hunt game. It has two methods public void mouseMoved(MouseEvent e) that is called when the mouse is moved onto a component and public void mouseDragged(MouseEvent e) that is called when the mouse button is pressed on a component and the mouse is dragged.

The place for the treasure (x,y) coordinates for the center of the treasure are read from the input file “Programming Assignment 2 [login to view URL]”.

If the player is far (outside the (200X200) from the treasure center) from the treasure, “Cold” should be displayed. As the player moves closer and closer to the treasure, (outside the (150X150) from the treasure center but inside the (200X200) from the treasure center) “Lukewarm” then (outside the (100X100) from the treasure center but inside the (150X150) from the treasure center) “Warm” than (outside the (50X50) from the treasure center but inside the (100X100) from the treasure center) “Hot” should be displayed and finally (inside the (50X50) from the treasure center) “Found” when the player finds the treasure.

The game should be played for each (x,y) coordinate in the input file. For every time the game is played the statistics of each game (x,y) and the message that was displayed must be saved to “Programming Assignment 2 Data [login to view URL]” together with how many moves it took the player for each game.

You need a draw method that draws what is happening in the game. If the treasure is found then reveal its location by drawing it. If the treasure has not been found display the String status at the current mouse location determined by the parameters x and y sent to the draw method. Use the Graphics Class to draw.

You cannot use any DATA STRUCTURES JCL Classes!

You cannot use a GUI Designer!

One Class per .java file!

Action Listener Class in a separate file.

The 5 classes the program must have are: View, Controller, Programming Assignment, Hunt, Treasure.

Java

Project ID: #7279308

About the project

5 proposals Remote project Active Mar 10, 2015

Awarded to:

nani01029x

Dear sir, I have done many projects in Java for student around the world and got some positive feedback from clients. You can check my profile for more information. Let me help you. I'm ready to get started right no More

$50 USD in 1 day
(99 Reviews)
5.6

5 freelancers are bidding on average $85 for this job

DucNA

Hi there I'm a senior software developer who have over 180 completed projects and my account was qualified by this site (my page: https://www.freelancer.com/u/DucNA.html). Btw, could you please send (or discuss wi More

$70 USD in 2 days
(270 Reviews)
6.6
dinhks

A proposal has not yet been provided

$100 USD in 3 days
(31 Reviews)
4.6
aoden

Hello. I am a Java developer have experience in GUI/Swing. You can see my demo in my profile Portfolio. I'm working with Java for over 2 years.I can do the job in time. if you interest please contact me

$50 USD in 3 days
(26 Reviews)
3.9
Kenyi019

Hello to all a cordial greeting: My proposal is as follows: - UML -Development In Android Native -Make A prior analyze all the requirements, and what will be the Slideshow most used by users. -Maquetear Entire a More

$155 USD in 3 days
(0 Reviews)
0.0