Skip to content

equinox2k/boundedParticles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Bounded Particles

Cocos2d-x V3 bounded quad particle system is a way of masking particles so the do not exit a given shape and thus creates a masking effect.

Example of use...

std::vector<Point> polyPoints;
polyPoints.push_back(Point(100.0f, 100.0f));
polyPoints.push_back(Point(200.0f, 100.0f));
polyPoints.push_back(Point(200.0f, 200.0f));
polyPoints.push_back(Point(100.0f, 200.0f));

auto particle = BoundedParticleSystemQuad::create("particles/myParticle.plist", polyPoints);
particle->setPosition(Point(150.0f, 100.0f));
this->addChild(particle);

About

Cocos2d-x v3 bounded quad particle system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages