随笔分类 -  Corona

摘要: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 阅读(272) 评论(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 阅读(737) 评论(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 阅读(287) 评论(0) 推荐(0)
摘要:corona下载txt文件偶尔会有乱码的情况解决方法:用GET方法需要把后缀名改成jpg并且是utf-8带bom(前面多了三个字节)的编码格式,或者是ANSI的格式。如果带中文要用utf-8的格式不然显示会有乱码。 阅读全文
posted @ 2012-03-23 10:46 superchao 阅读(285) 评论(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 阅读(179) 评论(0) 推荐(0)
摘要:原因1–《马里奥》较为直观原因2–新旧搭配原因3–玩家在游戏中感觉良好原因4–重玩价值原因5–秘密 阅读全文
posted @ 2011-12-26 18:13 superchao 阅读(314) 评论(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 阅读(1485) 评论(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 阅读(468) 评论(2) 推荐(0)
摘要:把资源库->Cache->com.anscamobile.Corona_Simulator文件删除。Preferences->com.anscamobile.Corona_Simulator.LSSharedFileList.plist和com.anscamobile.Corona_Simulator.plist删除 阅读全文
posted @ 2011-11-25 15:42 superchao 阅读(190) 评论(0) 推荐(0)
摘要:在项目中,经常会有用户按了两下按钮导致程序反应不正常,之前用的解决办法是设置遮罩。今天遇到加入gameActivity == false判断。 阅读全文
posted @ 2011-10-20 19:31 superchao 阅读(199) 评论(0) 推荐(0)
摘要:Corona同时移动多张图片,FPS会下降。解决方法:先创建几张,等要经过了才创建,并把移出屏幕的删除。(不然内存也会暴涨) 当移动一组图片时,在移出时删除之并在后面增加一张。会出现一卡一卡的现象。解决方法1:删除后隔500毫秒在创建(同时操作太占用CPU,才出现一卡一卡的)解决方法2:预先创建图片,然后在将其移入组中。(这种方法比较好) 阅读全文
posted @ 2011-10-07 18:13 superchao 阅读(230) 评论(0) 推荐(0)
摘要:在组中删除对象出现:WARNING: Attempting to set property(1) with nil所有的方法是display:remove(obj) obj = nil这也是corona推荐的方法。注释掉 obj = nil 就不会有warning 了display:remove(obj)--obj = nil 阅读全文
posted @ 2011-10-06 19:16 superchao 阅读(176) 评论(0) 推荐(0)