Help with drawing scope for game...
in
Programming Questions
•
1 month ago
The scope should be drawn at the location of the mouse pressed until the
mouse is pressed again when the first cope is erased and an updated scope is
drawn at the new location
the scope should grow from diameter = 1 to the
maximum diameter (DIA). This involves increasing the value of the
current diameter each time the scope is drawn. If the mouse is pressed while
the scope is still growing, the scope should now restart centered at the location
of the latest mouse press.
1.the task requires precision, floating-point variables should be used.
2. The background should be black and the color of the scope should be
hexadecimal #14A028.
3. The scope has a diameter of DIA (200)
4. The scope
shoul
d have two axes – horizontal and vertical (white)
5. There should be marking on the two axes. The number of such markings
on each axis is N (16 in the sample output) and the length of each marking
is LENGTH (10 pixels in the sample output). These markings MUST be
drawn using a loop.
1