资源简介

cocos2d-x 文字 遮挡 滚动,用labelWithString和setTextureRect实现

资源截图

代码片段和文件信息

#include “AppDelegate.h“
#include “HelloWorldScene.h“

USING_NS_CC;

AppDelegate::AppDelegate() {

}

AppDelegate::~AppDelegate() 
{
}

bool AppDelegate::applicationDidFinishLaunching() {
    // initialize director
    CCDirector *pDirector = CCDirector::sharedDirector();

    pDirector->setOpenGLView(CCEGLView::sharedOpenGLView());
    
    TargetPlatform target = getTargetPlatform();
    
    if (target == kTargetIpad)
    {
        // ipad
        
        CCFileUtils::sharedFileUtils()->setResourceDirectory(“iphonehd“);
        
        // don‘t enable retina because we don‘t have ipad hd resource
        CCEGLView::sharedOpenGLView()->setDesignResolutionSize(960 640 kResolutionNoBorder);
    }
    else if (target == kTargetIphone)
    {
        // iphone
        
        // try to e

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-11-12 16:00  HelloCpp\
     目录           0  2012-11-12 15:58  HelloCpp\Classes\
     文件        2410  2012-09-27 10:59  HelloCpp\Classes\AppDelegate.cpp
     文件         955  2012-09-27 10:59  HelloCpp\Classes\AppDelegate.h
     文件        4918  2012-11-12 15:33  HelloCpp\Classes\HelloWorldScene.cpp
     文件        1486  2012-10-31 10:19  HelloCpp\Classes\HelloWorldScene.h
     文件        5856  2012-11-12 15:36  HelloCpp\Classes\moveLabel.cpp
     文件        1075  2012-11-12 15:34  HelloCpp\Classes\moveLabel.h
     目录           0  2012-11-12 15:58  HelloCpp\Classes\tinyxml\
     文件        2507  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinystr.cpp
     文件        8198  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinystr.h
     文件       37591  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinyxml.cpp
     文件       64834  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinyxml.h
     文件        1791  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinyxmlerror.cpp
     文件       37242  2012-09-27 11:59  HelloCpp\Classes\tinyxml\tinyxmlparser.cpp
     文件        7713  2012-10-29 10:25  HelloCpp\Classes\复件 HelloWorldScene.cpp
     目录           0  2012-11-12 15:59  HelloCpp\proj.win32\
     文件        5270  2012-09-27 10:59  HelloCpp\proj.win32\HelloCpp.vcproj
     文件         487  2012-09-27 10:59  HelloCpp\proj.win32\HelloCpp.vcproj.user
     文件        8301  2012-10-29 10:30  HelloCpp\proj.win32\HelloCpp.vcxproj
     文件        2254  2012-10-29 10:30  HelloCpp\proj.win32\HelloCpp.vcxproj.filters
     文件         645  2012-09-27 10:59  HelloCpp\proj.win32\HelloCpp.vcxproj.user
     文件         566  2012-09-27 10:59  HelloCpp\proj.win32\main.cpp
     文件         267  2012-09-27 10:59  HelloCpp\proj.win32\main.h
     文件          60  2012-11-12 16:03  HelloCpp\readme.txt
     目录           0  2012-11-12 15:58  HelloCpp\Resources\
     目录           0  2012-11-12 15:58  HelloCpp\Resources\iphone\
     文件        6311  2012-09-27 10:59  HelloCpp\Resources\iphone\CloseNormal.png
     文件        5499  2012-09-27 10:59  HelloCpp\Resources\iphone\CloseSelected.png
     文件      138777  2012-09-27 10:59  HelloCpp\Resources\iphone\HelloWorld.png
     文件       15565  2012-10-30 11:47  HelloCpp\Resources\iphone\numberd.xml
............此处省略10个文件信息

评论

共有 条评论