资源简介

这是我初学 cocos2d-x 时做的第一个小游戏,俄罗斯方块。下载解压后直接拷贝到 cocos2d-x 2.2.6 根目录下即可完美编译运行。

资源截图

代码片段和文件信息

#include “AppDelegate.h“
#include “Controller.h“
#include 
#include 
#include 

USING_NS_GAME;
USING_NS_CC;
using namespace CocosDenshion;

AppDelegate::AppDelegate()
{
}

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

bool AppDelegate::applicationDidFinishLaunching()
{
CCDirector* pDirector = CCDirector::sharedDirector();
pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());
pDirector->setDisplayStats(true);
pDirector->setAnimationInterval(1.0 / 60);
pDirector->runWithScene((CCScene*)Controller::createScene());
return true;
}

void AppDelegate::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->stopAnimation();
SimpleAudioEngine::sharedEngine()->pauseBackgroundMusic();
SimpleAudioEngine::sharedEngine()->pau

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-02-25 23:30  game_001_tetris\
     目录           0  2015-02-25 23:30  game_001_tetris\Classes\
     文件        1040  2013-06-12 04:51  game_001_tetris\Classes\AppDelegate.cpp
     文件         355  2013-06-12 05:03  game_001_tetris\Classes\AppDelegate.h
     目录           0  2015-02-25 23:30  game_001_tetris\Classes\Blocks\
     文件        5974  2015-02-25 19:21  game_001_tetris\Classes\Blocks\BasicBlock.cpp
     文件        1968  2015-02-25 19:16  game_001_tetris\Classes\Blocks\BasicBlock.h
     文件         483  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_I.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_I.h
     文件         776  2013-06-12 05:03  game_001_tetris\Classes\Blocks\Block_J.cpp
     文件         289  2013-06-12 05:03  game_001_tetris\Classes\Blocks\Block_J.h
     文件         776  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_L.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_L.h
     文件         439  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_O.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_O.h
     文件         533  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_S.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_S.h
     文件         775  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_T.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_T.h
     文件         532  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_Z.cpp
     文件         289  2013-06-12 05:02  game_001_tetris\Classes\Blocks\Block_Z.h
     文件         321  2013-06-10 02:54  game_001_tetris\Classes\blocks.h
     文件         881  2013-06-11 02:16  game_001_tetris\Classes\Controller.cpp
     文件         424  2013-06-10 03:42  game_001_tetris\Classes\Controller.h
     目录           0  2015-02-25 23:30  game_001_tetris\Classes\Grids\
     文件        1603  2015-02-25 18:11  game_001_tetris\Classes\Grids\Cube.cpp
     文件         471  2013-06-12 14:00  game_001_tetris\Classes\Grids\Cube.h
     文件        2234  2015-02-25 18:12  game_001_tetris\Classes\Grids\Edge.cpp
     文件         480  2013-06-12 14:09  game_001_tetris\Classes\Grids\Edge.h
     文件       17187  2015-02-25 19:19  game_001_tetris\Classes\Grids\Square.cpp
     文件        2474  2015-02-25 21:04  game_001_tetris\Classes\Grids\Square.h
............此处省略43个文件信息

评论

共有 条评论