var cc=cc||{};function ClassManager(){return arguments.callee.name||arguments.callee.toString().match(/^function ([^(]+)/)[1]}ClassManager.id=0|998*Math.random();
ClassManager.compileSuper=function(a,b,c){for(var d=a.toString(),e=d.indexOf("("),f=d.indexOf(")"),e=d.substring(e+1,f),e=e.trim(),f=d.indexOf("{"),g=d.lastIndexOf("}"),d=d.substring(f+1,g);-1!=d.indexOf("this._super");)var f=d.indexOf("this._super"),g=d.indexOf("(",f),h=d.indexOf(")",g),h=d.substring(g+1,h),h=(h=h.trim())?",":"",k=arguments.callee.ClassManager(),d=d.substring(0,f)+k+"["+c+"]."+b+".call(this"+h+d.substring(g+1);return Function(e,d)};ClassManager.compileSuper.ClassManager=ClassManager;
ClassManager.getNewID=function(){return this.id++};
(function(){var a=!1,b=/\b_super\b/,c=document.ccConfig&&document.ccConfig.CLASS_RELEASE_MODE?document.ccConfig.CLASS_RELEASE_MODE:null;c&&console.log("release Mode");cc.Class=function(){};cc.Class.extend=function(d){function e(){!a&&this.ctor&&this.ctor.apply(this,arguments)}var f=this.prototype;a=!0;var g=new this;a=!1;e.id=ClassManager.getNewID();ClassManager[e.id]=f;for(var h in d)c&&"function"==typeof d[h]&&"function"==typeof f[h]&&b.test(d[h])?g[h]=ClassManager.compileSuper(d[h],h,e.id):"function"==
typeof d[h]&&"function"==typeof f[h]&&b.test(d[h])?g[h]=function(a,b){return function(){var c=this._super;this._super=f[a];var d=b.apply(this,arguments);this._super=c;return d}}(h,d[h]):g[h]=d[h];g.__pid=e.id;e.prototype=g;e.prototype.constructor=e;e.extend=arguments.callee;e.implement=function(a){for(var b in a)g[b]=a[b]};return e}})();cc.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a};
cc.base=function(a,b,c){var d=arguments.callee.caller;if(d.superClass_)return ret=d.superClass_.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(arguments,2),f=!1,g=a.constructor;g;g=g.superClass_&&g.superClass_.constructor)if(g.prototype[b]===d)f=!0;else if(f)return g.prototype[b].apply(a,e);if(a[b]===d)return a.constructor.prototype[b].apply(a,e);throw Error("cc.base called from a method of one name to a method of a different name");};
cc.concatObjectProperties=function(a,b){a||(a={});for(var c in b)a[c]=b[c];return a};cc.clone=function(a){var b=a instanceof Array?[]:{},c;for(c in a){var d=a[c];b[c]=d instanceof Array?cc.clone(d):"object"==typeof d&&!(d instanceof cc.Node)&&!(d instanceof HTMLElement)?cc.clone(d):d}return b};cc.associateWithNative=function(a,b){};cc.IS_SHOW_DEBUG_ON_PAGE=cc.IS_SHOW_DEBUG_ON_PAGE||!1;
cc._logToWebPage=function(a){var b=document.getElementById("logInfoList");if(!b){var c=document.createElement("Div");c.setAttribute("id","logInfoDiv");cc.canvas.parentNode.appendChild(c);c.setAttribute("width","300");c.setAttribute("height",cc.canvas.height);c.style.zIndex="99999";c.style.position="absolute";c.style.top="0";c.style.left="0";b=document.createElement("ul");c.appendChild(b);b.setAttribute("id","logInfoList");b.style.height="450px";b.style.color="#fff";b.style.textAlign="left";b.style.listStyle=
"disc outside";b.style.fontSize="12px";b.style.fontFamily="arial";b.style.padding="0 0 0 20px";b.style.margin="0";b.style.textShadow="0 0 3px #000";b.style.zIndex="99998";b.style.position="absolute";b.style.top="0";b.style.left="0";b.style.overflowY="hidden";var d=document.createElement("Div");c.appendChild(d);d.style.width="300px";d.style.height=cc.canvas.height+"px";d.style.opacity="0.1";d.style.background="#fff";d.style.border="1px solid #dfdfdf";d.style.borderRadius="8px"}c=document.createElement("li");
c.innerHTML=a;0==b.childNodes.length?b.appendChild(c):b.insertBefore(c,b.childNodes[0])};cc.log=function(a){cc.IS_SHOW_DEBUG_ON_PAGE?cc._logToWebPage(a):console.log(a)};cc.MessageBox=function(a){console.log(a)};cc.Assert=function(a,b){console.assert?console.assert(a,b):a||b&&alert(b)};
cc.initDebugSetting=function(){0==cc.COCOS2D_DEBUG?(cc.log=function(){},cc.logINFO=function(){},cc.logERROR=function(){},cc.Assert=function(){}):1==cc.COCOS2D_DEBUG?(cc.logINFO=cc.log,cc.logERROR=function(){}):1<cc.COCOS2D_DEBUG&&(cc.logINFO=cc.log,cc.logERROR=cc.log)};cc.LANGUAGE_ENGLISH=0;cc.LANGUAGE_CHINESE=1;cc.LANGUAGE_FRENCH=2;cc.LANGUAGE_ITALIAN=3;cc.LANGUAGE_GERMAN=4;cc.LANGUAGE_SPANISH=5;cc.LANGUAGE_RUSSIAN=6;cc.create3DContext=function(a,b){for(var c=["webgl","experimental-webgl","webkit-3d","moz-webgl"],d=null,e=0;e<c.length;++e){try{d=a.getContext(c[e],b)}catch(f){}if(d)break}return d};cc.Browser={};
(function(){cc.Browser.ua=navigator.userAgent.toLowerCase();cc.Browser.platform=navigator.platform.toLowerCase();cc.Browser.UA=cc.Browser.ua.match(/(opera|ie|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|$)/)||[null,"unknown",0];cc.Browser.mode="ie"==cc.Browser.UA[1]&&document.documentMode;cc.Browser.type="version"==cc.Browser.UA[1]?cc.Browser.UA[3]:cc.Browser.UA[1];cc.Browser.isMobile=-1!=cc.Browser.ua.indexOf("mobile")||-1!=cc.Browser.ua.indexOf("android");document.ccConfig||
(document.ccConfig={});cc._userRenderMode=parseInt(document.ccConfig.renderMode)||0;if(1===cc._userRenderMode)cc.Browser.supportWebGL=!1;else{cc.Browser.supportWebGL=null!=window.WebGLRenderingContext;var a=document.createElement("Canvas"),a=cc.create3DContext(a,{stencil:!0,preserveDrawingBuffer:!0});cc.Browser.supportWebGL=null!=a}2===cc._userRenderMode&&!cc.Browser.supportWebGL&&(cc.__renderDoesnotSupport=!0);var a=cc.Browser,b;try{b=new (window.AudioContext||window.webkitAudioContext||window.mozAudioContext)?
!0:!1}catch(c){b=!1}a.supportWebAudio=b})();cc.RenderDoesnotSupport=function(){return"undefined"===cc.__renderDoesnotSupport?!1:cc.__renderDoesnotSupport};
cc.$=function(a){var b=this==cc?document:this;if(a=a instanceof HTMLElement?a:b.querySelector(a))a.find=a.find||cc.$,a.hasClass=a.hasClass||function(a){return this.className.match(RegExp("(\\s|^)"+a+"(\\s|$)"))},a.addClass=a.addClass||function(a){this.hasClass(a)||(this.className&&(this.className+=" "),this.className+=a);return this},a.removeClass=a.removeClass||function(a){this.hasClass(a)&&(this.className=this.className.replace(a,""));return this},a.remove=a.remove||function(){this.parentNode&&
this.parentNode.removeChild(this);return this},a.appendTo=a.appendTo||function(a){a.appendChild(this);return this},a.prependTo=a.prependTo||function(a){a.childNodes[0]?a.insertBefore(this,a.childNodes[0]):a.appendChild(this);return this},a.transforms=a.transforms||function(){this.style[cc.$.trans]=cc.$.translate(this.position)+cc.$.rotate(this.rotation)+cc.$.scale(this.scale)+cc.$.skew(this.skew);return this},a.position=a.position||{x:0,y:0},a.rotation=a.rotation||0,a.scale=a.scale||{x:1,y:1},a.skew=
a.skew||{x:0,y:0},a.translates=function(a,b){this.position.x=a;this.position.y=b;this.transforms();return this},a.rotate=function(a){this.rotation=a;this.transforms();return this},a.resize=function(a,b){this.scale.x=a;this.scale.y=b;this.transforms();return this},a.setSkew=function(a,b){this.skew.x=a;this.skew.y=b;this.transforms();return this};return a};
switch(cc.Browser.type){case "firefox":cc.$.pfx="Moz";cc.$.hd=!0;break;case "chrome":case "safari":cc.$.pfx="webkit";cc.$.hd=!0;break;case "opera":cc.$.pfx="O";cc.$.hd=!1;break;case "ie":cc.$.pfx="ms";cc.$.hd=!1;break;default:cc.$.pfx="webkit",cc.$.hd=!0}cc.$.trans=cc.$.pfx+"Transform";cc.$.translate=cc.$.hd?function(a){return"translate3d("+a.x+"px, "+a.y+"px, 0) "}:function(a){return"translate("+a.x+"px, "+a.y+"px) "};
cc.$.rotate=cc.$.hd?function(a){return"rotateZ("+a+"deg) "}:function(a){return"rotate("+a+"deg) "};cc.$.scale=function(a){return"scale("+a.x+", "+a.y+") "};cc.$.skew=function(a){return"skewX("+-a.x+"deg) skewY("+a.y+"deg)"};cc.$new=function(a){return cc.$(document.createElement(a))};cc.$.findpos=function(a){var b=0,c=0;do b+=a.offsetLeft,c+=a.offsetTop;while(a=a.offsetParent);return{x:b,y:c}};cc.Codec={name:"Jacob__Codec"};cc.unzip=function(){return cc.Codec.GZip.gunzip.apply(cc.Codec.GZip,argu
没有合适的资源?快使用搜索试试~ 我知道了~
CocosBuilder-3.0-alpha5
共2478个文件
js:475个
html:445个
nib:315个
5星 · 超过95%的资源 需积分: 9 148 下载量 7 浏览量
2014-02-16
10:50:16
上传
评论 1
收藏 18.4MB ZIP 举报
温馨提示
CocosBuilder与interface builder 类似,是cocos2d下简单快速进行精灵,层,场景布局的工具。 CocosBuilder可以快速完美的进行菜单和交互场景的布局,如果手动去做,这往往让人头疼。
资源推荐
资源详情
资源评论
收起资源包目录
CocosBuilder-3.0-alpha5 (2478个子文件)
config.1 24KB
json.1 21KB
node.1 19KB
set.1 18KB
get.1 18KB
faq.1 12KB
scripts.1 10KB
README.1 8KB
install.1 8KB
global.1 8KB
folders.1 8KB
shrinkwrap.1 7KB
developers.1 6KB
coding-style.1 6KB
npm.1 5KB
index.1 5KB
semver.1 5KB
disputes.1 5KB
registry.1 4KB
view.1 3KB
changelog.1 3KB
cache.1 2KB
ln.1 2KB
link.1 2KB
removing-npm.1 2KB
list.1 2KB
ls.1 2KB
version.1 2KB
dedupe.1 2KB
explore.1 1KB
owner.1 1KB
help.1 1KB
author.1 1KB
edit.1 1KB
submodule.1 1KB
help-search.1 1KB
bugs.1 1007B
home.1 1001B
docs.1 999B
adduser.1 969B
unpublish.1 967B
completion.1 954B
deprecate.1 927B
find.1 897B
publish.1 876B
init.1 874B
pack.1 859B
update.1 802B
star.1 662B
search.1 659B
restart.1 650B
stars.1 646B
build.1 632B
prune.1 621B
run-script.1 619B
rebuild.1 596B
test.1 560B
outdated.1 502B
bundle.1 497B
tag.1 486B
rm.1 483B
uninstall.1 483B
start.1 476B
stop.1 472B
root.1 434B
bin.1 428B
prefix.1 407B
whoami.1 374B
view.3 4KB
npm.3 4KB
ls.3 2KB
find.3 2KB
list.3 2KB
search.3 1KB
set.3 1KB
get.3 1KB
config.3 1KB
author.3 1KB
owner.3 1KB
ln.3 1KB
link.3 1KB
help-search.3 1KB
init.3 1KB
submodule.3 1KB
deprecate.3 1KB
run-script.3 1022B
publish.3 991B
edit.3 969B
tag.3 968B
load.3 849B
shrinkwrap.3 801B
explore.3 800B
commands.3 791B
pack.3 747B
install.3 745B
unpublish.3 735B
home.3 715B
version.3 714B
docs.3 713B
bugs.3 711B
共 2478 条
- 1
- 2
- 3
- 4
- 5
- 6
- 25
逍遥墨君
- 粉丝: 26
- 资源: 632
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页