zoukankan      html  css  js  c++  java
  • cocos 自定义粒子系统plist

        auto particleSystem = ParticleSystemQuad::create("Desktop.plist");
        particleSystem->setPosition(Point(visibleSize.width/2, visibleSize.height/2));
        this->addChild(particleSystem);
    <?xml version="1.0" encoding="utf-8"?>
    <plist version="1.0"><dict><key>angle</key>
    <real>360.000000</real>
    <key>angleVariance</key>
    <real>360.000000</real>
    <key>duration</key>
    <real>0.010000</real>
    <key>startParticleSize</key>
    <real>34.110001</real>
    <key>startParticleSizeVariance</key>
    <real>38.320000</real>
    <key>finishParticleSize</key>
    <real>13.590000</real>
    <key>finishParticleSizeVariance</key>
    <real>0.000000</real>
    <key>gravityx</key>
    <real>1.150000</real>
    <key>gravityy</key>
    <real>1.580000</real>
    <key>maxParticles</key>
    <real>809.000000</real>
    <key>maxRadius</key>
    <real>0.000000</real>
    <key>maxRadiusVariance</key>
    <real>0.000000</real>
    <key>minRadius</key>
    <real>0.000000</real>
    <key>particleLifespan</key>
    <real>0.000000</real>
    <key>particleLifespanVariance</key>
    <real>1.120000</real>
    <key>rotatePerSecond</key>
    <real>0.000000</real>
    <key>rotatePerSecondVariance</key>
    <real>0.000000</real>
    <key>rotationEnd</key>
    <real>0.000000</real>
    <key>rotationEndVariance</key>
    <real>0.000000</real>
    <key>rotationStart</key>
    <real>0.000000</real>
    <key>rotationStartVariance</key>
    <real>0.000000</real>
    <key>sourcePositionVariancex</key>
    <real>0.000000</real>
    <key>sourcePositionVariancey</key>
    <real>0.000000</real>
    <key>sourcePositionx</key>
    <real>152.000000</real>
    <key>sourcePositiony</key>
    <real>211.000000</real>
    <key>speed</key>
    <real>149.000000</real>
    <key>speedVariance</key>
    <real>312.000000</real>
    <key>startColorAlpha</key>
    <real>1.000000</real>
    <key>startColorBlue</key>
    <real>0.356863</real>
    <key>startColorGreen</key>
    <real>0.556863</real>
    <key>startColorRed</key>
    <real>0.886275</real>
    <key>startColorVarianceAlpha</key>
    <real>0.498039</real>
    <key>startColorVarianceBlue</key>
    <real>0.200000</real>
    <key>startColorVarianceGreen</key>
    <real>0.200000</real>
    <key>startColorVarianceRed</key>
    <real>0.200000</real>
    <key>finishColorAlpha</key>
    <real>0.839216</real>
    <key>finishColorBlue</key>
    <real>0.423529</real>
    <key>finishColorGreen</key>
    <real>0.258824</real>
    <key>finishColorRed</key>
    <real>0.211765</real>
    <key>finishColorVarianceAlpha</key>
    <real>0.349020</real>
    <key>finishColorVarianceBlue</key>
    <real>0.168627</real>
    <key>finishColorVarianceGreen</key>
    <real>0.501961</real>
    <key>finishColorVarianceRed</key>
    <real>0.392157</real>
    <key>tangentialAccelVariance</key>
    <real>0.000000</real>
    <key>tangentialAcceleration</key>
    <real>0.000000</real>
    <key>radialAccelVariance</key>
    <real>0.000000</real>
    <key>radialAcceleration</key>
    <real>0.000000</real>
    <key>blendFuncSource</key>
    <integer>770</integer>
    <key>blendFuncDestination</key>
    <integer>1</integer>
    <key>emitterType</key>
    <real>0</real>
    <key>textureFileName</key>
    <string>Desktop.png</string>
    </dict></plist>
  • 相关阅读:
    Java进行AES/DES加密,C#对其进行解密
    【程序员的吃鸡大法】利用OCR文字识别+百度算法搜索,玩转冲顶大会、百万英雄、芝士超人等答题赢奖金游戏
    TWaver初学实战——炫动2D机房之连线篇
    TWaver初学实战——炫动2D机房之设备篇
    TWaver初学实战——炫动2D机房之机柜篇
    TWaver初学实战——基于HTML5的交互式地铁图
    TWaver3D入门探索——3D拓扑图之人在江湖
    TWaver3D入门探索——3D拓扑图之绽放的小球花
    TWaver初学实战——如何在TWaver属性表中添加日历控件?
    TWaver初学实战——如何在EasyUI中插入TWaver(续)
  • 原文地址:https://www.cnblogs.com/yufenghou/p/4157333.html
Copyright © 2011-2022 走看看