加载中
cocos tableview

local MainScene = class("MainScene", function() return display.newScene("MainScene") end) function MainScene:ctor() cc.ui.UILabel.new({ UILabelType = 2, tex...

2018/05/28 16:38
435
cocos 读取保存配置文件

cocos,配置文件

2018/01/25 13:47
241
manifest generate

import os import hashlib import time # def getFileMd5(filename): if not os.path.isfile(filename): return myhash = hashlib.md5() # create a md5 object f = fil...

2017/02/06 07:42
98
项目移植手记

1.CCNotificationCenter废弃了,建议用EventListnerCustom layer._listener1 = cc.EventListenerCustom:create("component game over", onEvent) local eventDispatcher = cc.Direct...

2016/11/13 15:54
567
base view outline

class ngView {     public:                 void dispatchDraw(canves)         {             canves.translate(mpos.x,mpos.y)             // ...

2016/10/10 19:23
27
.ccz 批量转换为 .png

rem path " "里面内容替换为TexturePacker的安装路径,将bat文件放在图片文件夹直接运行就可以了 @ech off path %path%;"D:\Program Files\TexturePacker\bin" for /f "usebackq tokens=*"...

2016/02/29 15:55
369
cocos2dx hittest

bool Widget::hitTest(const CCPoint &pt) {   std::string disp = getDescription(); CCPoint nsp = convertToNodeSpace(pt); CCRect bb = CCRect(-_size.width * m_obAnchorPoint...

2014/07/08 17:42
420
cocos2dx anchorpoint

对于场景或层等大型节点,它们的 IgnoreAnchorPointForPosition属性为 true ,此时 引擎会认为 AnchorPoint 永远为(0,0); 而其他节点的该属性为flase,它们的锚点不会被忽略。...

2014/06/24 10:18
38
cocos2dx 中文显示

http://blog.csdn.net/w18767104183/article/details/18089087 http://blog.csdn.net/hcwzq/article/details/18444649...

2014/06/24 10:15
29
CCNode::drawFrameAndAnchorPoint()

void CCNode::drawFrameAndAnchorPoint() {   CCSize size = getContentSize();   CCPoint pt = getAnchorPoint(); #if 1   glLineWidth(1);   ccDrawColor4B(127,255,255,255);   CCPoint start...

2014/06/21 18:25
21
button

.h #pragma once; #include "cocos2d.h" #include <string> using std::string; using namespace cocos2d; enum LabelSide {   LS_LEFT,   LS_RIGHT,   LS_COUNT, }; class Button:public CC...

2014/06/19 23:07
31

没有更多内容

加载失败,请刷新页面

没有更多内容

返回顶部
顶部