Added scaling max_rocks based on window size.