Skip to main content

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

What a fantastic game! Hands down I love everything about this. Going from 2d to 3d views was not expected and just what a wonderful way to make this game! Also I'm wanting to understand how you coded the mouse click and drag in a clock wise motion to register?? 

You are so kind :) For the drag I check if you are holding the mouse and adding the position of the mouse to an array. Then some linear algebra to find the fit function and if it’s close enough to the direction of the arrow. For the circle same thing but I compute the barycenter and sum the angles between two points. if the sign changes you are changing direction if you do a full 360 I count it as passed.