我知道为了在C++中杀死入侵者,我需要做一个对撞机。然而,在这个游戏中,没有任何东西可以杀死入侵者。以下是标题中的代码:
bool DoCollision(float Xbpos, float Ybpos, int BulWidth, int BulHeight, float Xipos, float Yipos, int InvWidth, int InvHeight);
这是我正在初始化的函数:
bool Game::DoCollision(float Xbpos, float Ybpos, int BulWidth, int BulHeight, float Xipos, float Y