
Cocos2d-x
文章平均质量分 87
小涵
博客:https://blog.mylearning.top/
我的QQ:3049720393
欢迎交流!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Particle effect-2 Custom define properties
emitterMode = gravity sourcePositiongravityradialAccel,radialAccelVarspeed,speedVartangentialAccel,tangentialAccelVaremitterMode = radiusstartRadius,startRadiusVar, endRadius,原创 2014-02-28 21:58:18 · 994 阅读 · 0 评论 -
Cocos2d:使用 CCCamera 做滚动效果 (Four Ways of Scrolling with Cocos2D)
Cocos2d:使用 CCCamera 做滚动效果 (Four Ways of Scrolling with Cocos2D)原创 2014-11-21 12:00:19 · 1653 阅读 · 0 评论 -
Box2d: Assertion failed: (area > 1.19209290e-7F), function ComputeCentroid
http://stackoverflow.com/questions/14084255/box2d-concave-bodySolIn your case vertices are oriented clockwise, while b2Polygon requirement is counterclockwise. It leads to calculation of neg原创 2014-11-12 13:09:16 · 1344 阅读 · 0 评论 -
Box2D: 错误variable length array of non-POD element type 'b2Vec2'
Variable length of non-POD element type 'b2Vec2'!!怎么会报出这个错误呢?真有点儿搞不懂了,刚进入ios开发的时候用的是一个朋友的mac笔记本他的系统是雪豹的,在雪豹的XCode下面我记得是一点儿问题都没有的,警告也就是某某变量声明过后未被使用蛋疼了,再看代码,操了,标准的c、c++写法啊...在栈上定义一个b2Vec转载 2014-03-08 22:57:36 · 3805 阅读 · 2 评论 -
Box2d: 2-Add to world
Adding Boxes to the Box2D World Listing 12–4.Adding a New Dynamic Body with a Sprite-(void) addNewSpriteAt:(CGPoint)pos{CCSpriteBatchNode* batch = (CCSpriteBatchNode*) [self getChild原创 2014-03-05 22:05:44 · 941 阅读 · 0 评论 -
Box2d:1-Setup
Listing 12–2.Initializing the Box2D Worldb2Vec2 gravity = b2Vec2(0.0f, -10.0f);bool allowBodiesToSleep = true;world = new b2World(gravity, allowBodiesToSleep); -(void) dealloc{原创 2014-03-05 21:37:43 · 908 阅读 · 0 评论 -
TiledMap:3 Player
Enabling the Player to Move Behind Tiles +(id) player{ return [[[self alloc] initWithFile:@"ninja.png"] autorelease];}-(void) updateVertexZ:(CGPoint)tilePos tileMap:(CCTMXTiledM原创 2014-03-02 22:43:58 · 840 阅读 · 0 评论 -
TiledMap:2
Cocos2d has issues with properly displaying game characters and other sprites behind partially occluding tiles in tile maps, unless you apply the following steps:1、 select the Ground layer a原创 2014-03-02 15:34:54 · 844 阅读 · 0 评论 -
TiledMap:1
global identifiers (GIDs) for tiles, which are unique integer numbers assigned to each tile used in a tilemap,starting with 1. A GID of 0 represents an empty tile. Withthe tileGIDAtmethod of the原创 2014-03-01 23:47:12 · 1439 阅读 · 0 评论 -
Particle system-3 Custom.m
#import "ParticleEffectSelfMade.h"@implementation ParticleEffectSelfMade-(id) init{ return [self initWithTotalParticles:250];}-(id) initWithTotalParticles:(int)numParticles{ if ((self = [s原创 2014-02-28 22:56:48 · 1206 阅读 · 0 评论 -
Particle Effects-1
TheNSStringFromClassmethod is very helpful in this example for printing out the name of the class without having to enter dozens of matching strings. It’s one of the coolruntime features of the原创 2014-02-28 21:45:29 · 1011 阅读 · 0 评论 -
Inkscape美工教程
http://bbs.9ria.com/thread-107720-1-1.htmlhttp://cloud.yanwen.org/2012/01/950.html原创 2014-11-24 13:25:05 · 1845 阅读 · 0 评论