cocos2d 中用 图片数字 作为 Lable 显示
2013-07-30 11:10
274 查看
LabelAtlas
abelAtlasIntroduction
CCLabelAtlaswas the 1st fast label added into cocos2d. But it was superseded by
CCBitmapFontAtlas.It is being maintained for backwards compatibility, but you should use
CCBitmapFontAtlasinstead.
Creating a LabelAtlas
CCLabelAtlas *label = [CCLabelAtlas labelAtlasWithString:@"Hello World" charMapFile:@"tuffy_bold_italic-charmap.png" itemWidth:48 itemHeight:64 startCharMap:' ']; [self add:label];
charMapFileis an image file that contains all the characters. Each character should be ordered according to its
ASCII value and the image can't contain more than 256 characters.
itemWidthis the width of the characters in pixels
itemHeightis the height of the characters in pixels
startCharMapis the first character of the map.
http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:labels
相关文章推荐
- cocos2d-x 图片数字显示,可用于计分板,金币显示板等
- Xcode ,Cocos2d-x,强制横屏,Bundle Identifier ,iOS 打包成.ipa,修改项目名称,同名图片替换总是显示旧图片
- cocos2d-x 使用图片作为文字
- VC 中用 IPicture 在窗口中显示图片文件
- cocos2d-js 3.0 显示网络图片
- 利用JSP在Web页面中显示随机数字验证码图片
- 用一张图片作为网页的背景,能让这个图片不管是在普通显示器还是宽屏显示器上都能全屏显示
- VC 中用 IPicture 在窗口中显示图片文件
- Opencv (Opencv2)结合MFC学习数字图像处理【3】---显示图片
- cocos2d-x加载图片显示不清晰
- HTML Button 背景图片样式作为按钮显示
- cocos2d-JS 实现 横 竖 屏 显示提示图片(rotate.png)效果 !!!!!
- 显示手写体数字图片经PCA压缩后的二维空间分布
- 使用DelphiX显示图片并把图片作为背景
- cocos2d-js cc.RenderTexture几种用法(数字图片、刮刮乐效果)
- cocos2d-x 3.2 |如何实现图片显示和精灵动画 Sprite
- android 引导用户指示操作 高亮显示 可以自定义文字或者图片来作为提示,文字会自动换行
- 通过 Bitmap Font Generator 生成 fnt 与 png 文件供 cocos2d-x 中 LabelBMFont 使用达到以图片表现数字
- 【Cocos2D-X 游戏引擎】初窥门径(3)图片文字显示
- HTML Button 背景图片样式作为按钮显示