More work on sprite rotation and collision detection