4
3
leye - 100
ldot - 118
reye - 150
reye - 153
100
24
24
113
xpos
ypos
4
140
currPos
currPos
230
min(max(currPos,eyePos+3), eyePos+17)
min(max(mouseXpos,rteyePos+3), rteyePos+17)
min(max(230,153+3), rteyePos+17)
min(230, 153+17)
170
24
17
Width of the eyeball
Eyeball movement offset
Stay inside eye