文章分类 -  C#MonoGame

《碰撞问题》在防止player 出屏幕范围的时候 为什么>屏幕下面 和 右面 都要减掉 宽高?
摘要:if (slimeBounds.Left < screenBounds.Left) { _slimePosition.X = screenBounds.Left; } else if (slimeBounds.Right > screenBounds.Right) { _slimePosition. 阅读全文

posted @ 2025-07-29 19:59 C#我喜欢 阅读(17) 评论(0) 推荐(0)

导航