Question: Program that creates a new world with a turtle in it using EndWorld w = new EndWorld(); AnimatedTurtle t = new AnimatedTurtle(w); and whenever the
Program that creates a new world with a turtle in it using
EndWorld w = new EndWorld(); AnimatedTurtle t = new AnimatedTurtle(w);
and whenever the mouse moves around the turtle must follow it.
Here and example and the instructions that were given:

Download the zipped starter project: TurtleMouseFollowStarter.zip, unzip it and open it in IntelliJ. You must use this as the basis for your solution. (I have the file and can send it)
In this assignment you will create an application where the turtle follows the mouse pointer (see Demo below)
Important Note: Be sure to add the mouse listeners to the EndWorld directly NOT the frame!
Here is the beginning of the UML class diagram that you must implement. Omitted are other classes (anonymous or otherwise) for event handling.

There are 2 different interfaces you will need for handling mouse events.
As noted above you need to have the turtle start/stop moving based on
Whether it is already at the position of the mouse
If the mouse pointer is in the drawing area. This latter one can be handled by using the Point object that the TurtleMouseFollower has. In my implementation I initially set it to null and reset it to null when the mouse exits the drawing area.
What to Submit:
Main.java
TurtleMouseFollower.java
TURTLE ZIP:
I TRIED TO ATTACH THE ZIP FILE BUT IT IS OVER 2MB. CAN I EMAIL IT OR IS THERE ANOTHER WAY TO SEND IT?
can I get an email address?
I updated the pictures..
odules World nt Handling, Read: Class D Video: Java Downloa Video: Key Li Video: Key Bindings in Java and Lambdas Assignment: TurtleMouseListener Module odules World nt Handling, Read: Class D Video: Java Downloa Video: Key Li Video: Key Bindings in Java and Lambdas Assignment: TurtleMouseListener Module
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
