Used calculations to determine sprite positions.