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 游戏开发:主席 阅读(2361) 评论(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 游戏开发:主席 阅读(528) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

点击右上角即可分享
微信分享提示