阅读背景:

Java - 检查4个点(形成一个矩形)是否与另外4个点“碰撞”

来源:互联网 

I am creating a Roguelike dungeon generator, and part of this involves checking if a room (which is represented by x1, y1, x2, y2) "collides" with another room. If this is the case, the room will be regenerated. I've tried Googling a bit, but I've yet to find anything that works. Here is some code based off of what I found online, but it always seems to return true.I am creating a Roguelike dungeon generator, an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: