Changed player velocity based on window size.