上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: I've replied to a post recently about how letterbox scalling works and since then I've bumped into a lot of people having trouble with the subject to whom I've been linking that old post.As I came to the realization that it is quite an important subject and one that people don't unde 阅读全文
posted @ 2012-04-23 11:59 superchao 阅读(242) 评论(0) 推荐(0) 编辑
摘要: An Android APK is really a zip file. The files in the resource directory are inside the APK file, therefore they are compressed within a zip file. The Lua io API such as io.open() is unable to open/extract files inside a zip file, thus it cannot open files within an APK. This is true of the io API o 阅读全文
posted @ 2012-04-23 10:43 superchao 阅读(717) 评论(0) 推荐(0) 编辑
摘要: Asus Garmin nuvifone A50 (T-Mobile Garminfone)Augen GENTouch 78 TabletCoby Kyros Internet Tablet (MID7015)Geeksphone One, Geeksphone ZeroHTC AriaHTC ChaChaHTC Dream (T-Mobile G1, Android Dev Phone 1)HTC Droid ErisHTC Espresso (T-Mobile myTouch 3G Slide)HTC Hero (T-Mobile G2 Touch)HTC LegendHTC Magic 阅读全文
posted @ 2012-03-23 15:11 superchao 阅读(272) 评论(0) 推荐(0) 编辑
摘要: corona下载txt文件偶尔会有乱码的情况解决方法:用GET方法需要把后缀名改成jpg并且是utf-8带bom(前面多了三个字节)的编码格式,或者是ANSI的格式。如果带中文要用utf-8的格式不然显示会有乱码。 阅读全文
posted @ 2012-03-23 10:46 superchao 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Timers and Transitions 可能是崩溃的其中一个最常见的原因,主要是因为无数的事件可 以发生在timer/transition开始和结束之间。更糟糕的是,当你不在使用时忘记了去取消他 们,它们可能会被困在内存中并引起更多的泄漏。有一种方法,你能管理好它们,把所有的timers and transitions储存在表中,以便当你确 定没有timers and transitions应该运行时,你可以立即取消他们。如果你添加下列代码到你的main.lua文件(或另一个模块然后require它),你可以轻松地追 踪你的timers and transitions并且在需要的时候立刻 阅读全文
posted @ 2012-02-01 10:44 superchao 阅读(159) 评论(0) 推荐(0) 编辑
摘要: = Things you should know about Lua's performance =This wiki is a result of some lua performance tests (the widget is included with ca sandbox).[[BR]][[BR]][[BR]]== TEST 1: localize ==Code:{{{#!lualocal min = math.min}}}Results:{{{#!html<div style="margin-left:25px"><font color 阅读全文
posted @ 2012-02-01 10:43 superchao 阅读(491) 评论(0) 推荐(0) 编辑
摘要: var Sys = {};var ua = navigator.userAgent.toLowerCase();var s;(s = ua.match(/msie \d+.\d+/)) ? Sys.ie = s: (s = ua.match(/firefox\/\d+.\d+/)) ? Sys.firefox = s: (s = ua.match(/chrome\/\d+.\d+/)) ? Sys.chrome = s: (s = ua.match(/version\/\d+.\d+.\d+ safari\//)) ? Sys.safari = s : (s = ua.match(/versi 阅读全文
posted @ 2012-01-10 15:41 superchao 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 原因1–《马里奥》较为直观原因2–新旧搭配原因3–玩家在游戏中感觉良好原因4–重玩价值原因5–秘密 阅读全文
posted @ 2011-12-26 18:13 superchao 阅读(212) 评论(0) 推荐(0) 编辑
摘要: settings ={ android = { versionCode = "3" }, androidPermissions = { "android.permission.ACCESS_FINE_LOCATION", "android.permission.INTERNET" }, orientation = { default = "landscape" },}Version Code (Android)The version code can be set within... 阅读全文
posted @ 2011-12-21 17:47 superchao 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: From:--------------------------------------------------------------------------------------------------------------------------------------------------------------http://blog.anscamobile.com/2011/08/solutions-to-common-physics-challenges/Objects are sticking to wallsAnother challenge people are runn 阅读全文
posted @ 2011-12-21 17:47 superchao 阅读(447) 评论(2) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页