4.3 Mouse Interaction
We’ll finish off our
actions service by adding mouse information to it. We’ll learn how we can gather mouse data while avoiding a couple of pitfalls common to mouse interaction in browser games. We’ll put this new functionality to use by making our hero “look” in the direction of the mouse cursor.