像素级别的多边形碰撞
摘要:
boolean isCollisionPolygon(int[] xPoints, int[] yPoints, int posx, int posy) { int i, j; int y; int miny, maxy; int x1, y1; int x2, y2; int ind1, ind2; int ints; int[] polyInts; int nPoints = xPoints.length; if (nPoints < 3) { return false; } polyInts = new i... 阅读全文
posted @ 2011-12-02 16:17 游戏开发:主席 阅读(527) 评论(0) 推荐(0) 编辑