Game Programming using Qt 5 Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Item collision detection

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.