Draw a target on the screen that moves to aim at where your mouse is located. A target consists of a horizontal line that goes from 0 to the window width and a vertical line that goes from 0 to the window height. The lines should cross paths where the mouse is. You can use line.setEndpoint(x, y) and line.setPosition(x, y) to move the line. When the user clicks, a small red dot should appear at that point of the screen.

Solved
Show answers

Ask an AI advisor a question