Simple java game, ASAP
$30-250 USD
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.
Project ID: #7279308
About the project
Awarded to:
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
5 freelancers are bidding on average $85 for this job
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