Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

The spinning is really well done and I really wonder how it works lol. how do you detect if the mouse is spinning? very interesting.

(1 edit)

Every frame we take an angle from the center of the lasso over to the mouse, compares it to the previous frame's angle, and adding those differences up gets us a pretty good indicator as to how far it's turned. Detecting change in the sum total tells us how much the mouse has spun.

Thanks! The way that we implemented the mouse spinning detection is by comparing the angle from the center of the lasso between the mouse's current and last frame position, and then accumulating those angle differences over time.