コード例 #1
0
ファイル: Collision.cs プロジェクト: Colbydude/ZeldaEngine
 public bool CheckCollision(Rectangle rectangle, bool fixBox = true)
 {
     rectangle = new Rectangle((int)(rectangle.X + (rectangle.Width * 0.4) / 2), (int)(rectangle.Y + rectangle.Height * 0.5), (int)(rectangle.Width * 0.6), (int)(rectangle.Height * 0.5));
     return(_mapController.CheckCollision(rectangle));
 }