Cocos2D游戏之旅六:流星、烟花、火焰、下雪、下雨粒子特效---源代码


Cocos2D游戏之旅(六):流星、烟花、火焰、下雪、下雨粒子特效---源代码 博客效果演示与讲解地址:http://blog.csdn.net/qiulanzhu/article/details/47910781
资源截图
代码片段和文件信息
#include “AppDelegate.h“
#include “HelloWorldScene.h“

USING_NS_CC;

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    auto director = Director::getInstance();
    auto glview = director->getOpenGLView();
    if(!glview) {
        glview = GLView::create(“My Game“);
        glview->setframeSize(480 320);
        director->setOpenGLView(glview);
    }

    // turn on display FPS
    director->setDisplayStats(false);

    // set FPS. the default value is 1.0/60 if you don‘t call this
    director->setAnimationInterval(1.0 / 60);

    // create a scene. it‘s an autorelease object
    auto scene = HelloWorld::createScene();

    // run
    director->runWithScene(scene);

    return true;
}

// This function will be called when the app is inactive. When comes a phone callit‘s be invoked too
void AppDelegate::applicationDidEnterBackground() {
    Director::getInstance()->stopAnimation();

    // if you use SimpleAudioEngine it must be pause
    // SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
}

// this function will be called when the app is active again
void AppDelegate::applicationWillEnterForeground() {
    Director::getInstance()->startAnimation();

    // if you use SimpleAudioEngine it must resume here
    // SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1409  2015-08-23 20:44  particleSystemClassesAppDelegate.cpp

     文件        947  2014-04-01 18:48  particleSystemClassesAppDelegate.h

     文件       4805  2015-08-23 20:53  particleSystemClassesHelloWorldScene.cpp

     文件        501  2015-08-23 20:29  particleSystemClassesHelloWorldScene.h

     文件      25776  2014-04-01 18:48  particleSystemfontsMarker Felt.ttf

     文件         45  2014-04-01 18:48  particleSystemproj.win32uild-cfg.json

     文件       2651  2014-05-12 18:03  particleSystemproj.win32Chapter7_1_AutoBatching.sln

     文件      10163  2015-08-23 18:10  particleSystemproj.win32Chapter7_1_AutoBatching.vcxproj

     文件       1340  2014-06-03 10:19  particleSystemproj.win32Chapter7_1_AutoBatching.vcxproj.filters

     文件        635  2014-05-12 18:03  particleSystemproj.win32Chapter7_1_AutoBatching.vcxproj.user

     文件     472163  2015-08-23 20:44  particleSystemproj.win32Debug.win32AppDelegate.obj

     文件        186  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlogChapter7_1_AutoBatching.lastbuildstate

     文件      11978  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlogcl.command.1.tlog

     文件     178322  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlogCL.read.1.tlog

     文件       3964  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlogcl.write.1.tlog

     文件       4148  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tloglink.command.1.tlog

     文件       7442  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tloglink.read.1.tlog

     文件       1846  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tloglink.write.1.tlog

     文件        636  2015-08-22 11:37  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlog
c.command.1.tlog

     文件       2652  2015-08-22 11:37  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlog
c.read.1.tlog

     文件        374  2015-08-22 11:37  particleSystemproj.win32Debug.win32Chapter7.50821A2F.tlog
c.write.1.tlog

     文件      16185  2015-08-23 20:53  particleSystemproj.win32Debug.win32Chapter7_1_AutoBatching.log

     文件       1036  2015-08-23 18:05  particleSystemproj.win32Debug.win32Chapter7_1_AutoBatching.vcxprojResolveAssemblyReference.cache

     文件      48456  2015-08-22 11:37  particleSystemproj.win32Debug.win32game.res

     文件     571757  2015-08-23 20:53  particleSystemproj.win32Debug.win32HelloWorldScene.obj

     文件     444423  2015-08-23 18:11  particleSystemproj.win32Debug.win32main.obj

     文件    1027072  2015-08-23 20:53  particleSystemproj.win32Debug.win32vc120.idb

     文件   17920000  2015-08-23 20:53  particleSystemproj.win32Debug.win32vc120.pdb

     文件       2170  2014-04-01 18:48  particleSystemproj.win32game.rc

     文件        451  2014-05-12 18:03  particleSystemproj.win32main.cpp

............此处省略25个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)