Whether the player item collides with a coin is checked by the scene's checkColliding() function, which is called after the player item has moved horizontally or vertically.