jbyu / cocos2d-x-particleAnim

sprite sheet animation for particle of cocos2d-x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cocos2d-x-particleAnim

sprite sheet animation for particle of cocos2d-x 3.5

	auto *particle = UVAnimParticleQuadSystem::create("particle_texture.plist");
	auto texture = Director::getInstance()->getTextureCache()->addImage("explosion.png");
	if (texture) {
		const Size& s = texture->getContentSize();
		particle->setTextureWithRectForAnimation(texture, Rect(0, 0, s.width, s.height), 64, 64, 25, true);
	}

cocos2d-x-VLCPlayer

	auto movie = VLCPlayer::create(Size(360,180));
	movie->setPosition(sprite->getPosition());
	movie->o_play("loop.mp4");
	this->addChild(movie);

About

sprite sheet animation for particle of cocos2d-x

License:MIT License


Languages

Language:C++ 100.0%