Program Requirements:
Modify which the mouse axis input modifies. It will no longer modify the position of the sixth sprite. You will now just read the X-axis values of the mouse and use it to modify the rotational changes of the first “[login to view URL]” sprite that is drawn. Moving the mouse left should cause the sprite to rotate counter-clockwise, and right to rotate the sprite counter-clockwise. Mouse Y-Axis does nothing.
The left mouse button will modify the first sprite, but scale it down. This value should be clamped to a minimum of 0.5.
The right mouse button will modify the first sprite, but scale it up. This value should be clamped to a maximum of 3.0.
The middle mouse button will reset the scale of the first sprite to 1.0.
The first sprite should also be translated with the arrow keys on the keyboard.
Up – Decreases Y
Left – Decreases X
Down – Increases Y
Right – Increases X
Note: The sixth sprite in the array from this week’s lab should still continuously rotate based on time, and should still have its translation be modifiable with the W, A, S, and D keys. You should not have to do any work to accomplish this, as it was done in the lab.
Grading Rubric (25 points total):
(5 pts) Program compiles and runs without modification
(5 pts) Code is commented and easy to follow.
(5 pts) First sprite rotates based on mouse x-axis. [1]
(5 pts) First sprite scales correctly based on left, right and middle mouse buttons. [2, 3, 4]
(5 pts) First sprite correctly translates based on arrow key presses. [6]
Hi, i am game programmer ..!! I made my own game in C++11, I have 3 year experience in sprite based game making,, Don't forget checking my portfolio , thanks :)