自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Yu

  • 博客(8)
  • 资源 (4)
  • 问答 (1)
  • 收藏
  • 关注

转载 Cocos2d-JS 性能优化

缓存的创建和清除为了提供性能,Cocos2d-JS提供了几个缓存,分别应用与不同的情况。这些 缓存类有纹理缓存,精灵帧缓存,动画 缓存和着色器缓存。场景与资源不同的场景中资源的占用不同,而资源的占用决定了缓存创建和清除的时机。 缓存创建和清除时机 使用纹理和精灵帧缓存时,一个原则是:“尽可能将所有资源加载到缓存”。 事实上作为游戏开发人员,需要照顾那些配置比较低的设备。用户不可能采用“尽可能将

2016-10-25 11:29:22 2553

原创 cocos2d - JS project.json 属性

概述项目相关配置,由原来的cocos2d.js中转移到project.json中,该文件需要与index.html同级,一般建议放在根目录下。由原来的cocos2d.js改为project.json的好处如下:原来的cocos2d.js中参杂了一些逻辑代码,无法很好体现其就是作为项目的配置文件。用json格式作为配置文件会更友好。也可以使得cocos-console、cocos-utils,甚至是用

2016-10-25 10:09:42 1646

原创 cocos2d-JS 帧听断网、连网事件

cocos2d-JS 帧听断网、联网事件 : var EventUtil = { addHandler: function(element, type, handler) { if (element.addEventListener) { element.addEventListener(type, handler, false); }

2016-10-22 16:44:18 834

原创 JavaScript 中 Browser 对象 常用API

API汇总链接重新加载页面API :location.reload();获取当前页面地址API :location.href打开新页面API :window.open("http://www.baidu.com");

2016-10-22 16:31:34 559

原创 cocos2d-JS - H5游戏开发 实时更新数据

在 index.html 里 红色方框内调用main.js 在用户浏览器中会存在缓存 想实现实时更新代码又保证不是每次都重载main.js 解决办法 :1. 新建的load.js 2. index.html 里面调用新建的load.js 3. load.js 后面带 Time 获取当前时间, 每次用户进入网页时都会因为版本号不一样重新加载 load.js 4. load.js 体积非常小

2016-10-17 18:08:12 2532

原创 cocos2d-JS 进阶主题 - JS到JAVA反射

如何在android平台上使用js直接调用Java方法在cocos2d-js 3.0beta中加入了一个新特性,在android平台上我们可以通过反射直接在js中调用java的静态方法。它的使用方法很简单:var o = jsb.reflection.callStaticMethod(className, methodName, methodSignature, parameters…) 在cal

2016-10-17 10:16:39 2641

原创 ecilpse 导入 cocos2d - JS 项目

ecilpse 导入 cocos2d - JS 项目 :

2016-10-10 15:25:33 670

原创 cocos2d - JS 修改 APK 包名

cocos2d - JS 修改 APK 包名 :找到对应路径原项目名字为 - test , 修改 string.xml修改完以后导出的APK包名 - LittleGirl注意 : 不能使用记事本修改 . (记事本保存格式会出问题)

2016-10-10 15:18:35 1149

VS各版本AssistX免费补丁

Visual Assist X 和谐补丁,适用于VS2017,点击安装即可.

2018-10-11

Visual Assist X 适用于VS2017

Visual Assist X 和谐补丁,适用于VS2017,patch过程简单,点击安装即可.

2018-08-23

Editor Console Pro 3.94

Editor Console Pro is a powerful replacement for Unity's editor console. As seen in: Part of the 2017 Unity Mobile Essentials Pack! Using Console Pro you can: - Use a search field to filter all entries by text, file name, class, GameObject name on the fly. - Search and filter using Regular Expressions. - Create custom filter groups with their own colors, icons, and toggle buttons, instead of just the default Logs, Warnings, and Errors. - See the source code surrounding each method call in the stack, allowing you to see and jump to the code around the log. - Open your code editor to any method or line in a log's stack by clicking on it, rather than just to the Debug.Log call. - Easily see a log entry's file name, namespace, GameObject name, and class in columns. - Ignore logs you never want to see again. - Ignore custom Debug.Log classes in the stack, so double clicking never takes you to the wrong code. - Watch variables without spam using special logs that collapse even though they have different content. - Use remote logging to get logs and stacktraces off of a standalone build or a phone/tablet build. - Colorize the entire log line so you can quickly see different log types. - Use custom fonts and colors. - Copy full logs and stack traces to the clipboard with one click. - Export the entire console output to a txt file, including stack traces. - Override Unity's status bar click.

2018-01-23

Unity3D - CameraPlay插件

要求Unity 5.4.0 或更高版本。 Camera Play是Unity的扩展,允许您仅使用一行代码即可快速添加特殊的相机效果到您的C #脚本。 Camera Play是一个强大的解决方案,可以快速添加特殊效果到您的2D、2.5D和3D制作。 为您的创作带来全新的维度。快速添加下一代密钥。节省制作时间。 例如,使用一行代码,您可在脚本中快速添加子弹冲击效果,无需手动画动画。为您的相机添加一滴水,带令人印象深刻的失真效果,为您的过场动画激活黑色条纹。所有这些都可以通过Camera Play实现。 描述: - 对于Unity 5.6 x及以上 - 仅适用于C # - 30种完全可设定的效果 - 此外,血液、子弹冲击、场景效果等 - 令人印象深刻的水滴效果 - 10种夜视效果 - 10种“喝醉”的效果 - 包含源代码 - 与最新手机的出色兼容性 - 每次更新时,免费增加新效果

2017-09-22

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除