摘要: python 需要安装 PIL库 http://www.pythonware.com/products/pil/ 对应版本 #!python import os,sys from xml.etree import ElementTree from PIL import Image def endWi 阅读全文
posted @ 2018-10-11 12:32 liujiang04 阅读(808) 评论(0) 推荐(0) 编辑
摘要: 1.css 九宫格 border: 10px solid transparent; width: 308px; height: 200px; -webkit-border-image: url(img/bg_shensetouming.png) 30 30 30 30; 2.自动换行 word-br 阅读全文
posted @ 2018-10-11 12:24 liujiang04 阅读(65) 评论(0) 推荐(0) 编辑
摘要: CCBReader.js 修改引擎代码 _readNodeGraph 函数 ccNodeLoader.parseProperties(node, parent, this); //handle sub ccb files(remove middle node) var isCCBFileNode = 阅读全文
posted @ 2018-10-11 12:20 liujiang04 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 做项目过程中遇到这样的问题,使用cocosjs做项目,做好了打包发布项目,在手机中运行游戏, 刚进游戏能正常渲染出画面,一触摸屏幕就黑屏,且没有报任何异常,解决方案如下, 找到CCScreen.js文件,在frameworks\cocos2d-html5\cocos2d\core\platform目 阅读全文
posted @ 2018-10-11 12:13 liujiang04 阅读(213) 评论(0) 推荐(0) 编辑