DEV Community

Discussion on: How To: Cursor Tracking Parallax

Collapse
 
kinslowdian profile image
Simon Kinslow

Great tutorial and really fun to build. Can someone explain what is happening in the update function on lines 3 & 4 with the two sets of parentheses, where x & y are added on the end of POS_X and POS_Y?