资源简介

使用VS2010、cocos2dx编写的连连看小游戏,包里有源码和应用程序,适合学习cocos2dx的新手用,为了像那些无私奉献源码的前辈学习,特献上此源码。 注:没有下载cocos2dx开发包的童鞋,只是用VS编译是不会通过的。

资源截图

代码片段和文件信息

#include “cocos2d.h“
#include “CCEGLView.h“
#include “AppDelegate.h“
#include “HelloWorldScene.h“
#include “SimpleAudioEngine.h“

using namespace CocosDenshion;

USING_NS_CC;

AppDelegate::AppDelegate()
{
}

AppDelegate::~AppDelegate()
{
    SimpleAudioEngine::end();
}

bool AppDelegate::applicationDidFinishLaunching()
{
    // initialize director
    CCDirector *pDirector = CCDirector::sharedDirector();
    pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());

    // turn on display FPS
    //pDirector->setDisplayStats(true);

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

    // create a scene. it‘s an autorelease object
    CCScene *pScene = HelloWorld::scene();

    // run
    pDirector->runWithScene(pScene);
    return true;
}

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

    SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
}

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

    SimpleAudioEngine::sharedEngine()->resumeBackgroundMusic();
}

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

     文件       1322  2013-01-14 15:37  lianliankan\Classes\AppDelegate.cpp

     文件        960  2013-01-06 11:13  lianliankan\Classes\AppDelegate.h

     文件      41458  2014-02-09 23:02  lianliankan\Classes\HelloWorldScene.cpp

     文件       3103  2014-02-09 23:17  lianliankan\Classes\HelloWorldScene.h

     文件         80  2013-01-11 15:32  lianliankan\proj.win32\Game.cpp

     文件        209  2013-01-11 15:33  lianliankan\proj.win32\Game.h

     文件       2295  2013-01-06 11:13  lianliankan\proj.win32\lianliankan.rc

     文件   28004352  2014-03-12 11:04  lianliankan\proj.win32\lianliankan.win32.sdf

     文件       3072  2014-03-12 11:04  lianliankan\proj.win32\lianliankan.win32.suo

     文件       8344  2014-02-09 23:07  lianliankan\proj.win32\lianliankan.win32.vcxproj

     文件       2229  2013-01-11 15:33  lianliankan\proj.win32\lianliankan.win32.vcxproj.filters

     文件        763  2013-01-06 11:13  lianliankan\proj.win32\lianliankan.win32.vcxproj.user

     文件        863  2013-01-06 11:13  lianliankan\proj.win32\main.cpp

     文件        270  2013-01-06 11:13  lianliankan\proj.win32\main.h

     文件      47629  2012-11-02 16:16  lianliankan\proj.win32\res\lianliankan.ico

     文件        502  2013-01-06 11:13  lianliankan\proj.win32\resource.h

     文件       6311  2012-11-02 16:16  lianliankan\Resources\CloseNormal.png

     文件       5499  2012-11-02 16:16  lianliankan\Resources\CloseSelected.png

     文件      25313  2012-11-02 16:16  lianliankan\Resources\fonts\bitmapFontChinese.fnt

     文件     110840  2012-11-02 16:16  lianliankan\Resources\fonts\bitmapFontChinese.png

     文件       9556  2012-11-02 16:16  lianliankan\Resources\fonts\geneva-32.fnt

     文件     202706  2012-11-02 16:16  lianliankan\Resources\fonts\helvetica-geneva-32.png

     文件        381  2013-01-09 17:37  lianliankan\Resources\fonts\strings.xml

     文件        380  2013-01-06 17:04  lianliankan\Resources\fonts\strings.xml.bak

    ..A.SH.     17408  2013-01-11 17:44  lianliankan\Resources\fonts\Thumbs.db

     文件     144927  2012-11-02 16:16  lianliankan\Resources\HelloWorld.png

     文件     157932  2012-11-02 16:16  lianliankan\Resources\spritesheet1.png

     文件       1082  2012-11-02 16:16  lianliankan\Resources\stars.png

    ..A.SH.     22016  2013-01-17 10:42  lianliankan\Resources\Thumbs.db

     文件    2279662  2013-01-11 14:43  lianliankan\年年kan.7z

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

评论

共有 条评论