12 2011 档案

cocos2d-x动作类游戏,人物排序(层次关系)
摘要:1 void WGBattleLayer::RoleSeqencingZ() 2 { 3 int length = (int)this->vector_All_Roles_->size(); 4 for (int i=0;i<length;i++) 5 { 6 for (int j=0;j<length - i - 1;j++) 7 { 8 //NO.1 9 WGRole* RoleA = this->vector_All_Roles_->at(j);10 WGRo... 阅读全文

posted @ 2011-12-28 15:32 GameDevelopmentA 阅读(2379) 评论(0) 推荐(0)

像素级别的多边形碰撞
摘要: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 GameDevelopmentA 阅读(538) 评论(0) 推荐(0)

导航