Solved error with distance from pointer to joystick center calculation
Changed some properties of the Character class to parameters, changed some character actions to functions, changed the joystick scale factor