上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 43 下一页
摘要: function MyApp:run() local glview=cc.Director:getInstance():getOpenGLView() glview:setFrameSize(480,320) cc.FileUtils:getInstance():addSearch... 阅读全文
posted @ 2015-04-24 07:51 yufenghou 阅读(270) 评论(0) 推荐(0)
摘要: local scheduler = require(cc.PACKAGE_NAME .. ".scheduler")local TestScene = class("TestScene", function() return display.newScene("TestScene")end)f... 阅读全文
posted @ 2015-04-23 20:49 yufenghou 阅读(299) 评论(0) 推荐(0)
摘要: 这两天总是遇到各种各样的鬼东西。尝试了无数次最终,又一次成功了,不知道是不是偶然。1 build_native --api 10 后面的 --api 10 非常重要,感觉以前错就是错在这里了。2 import java3 import android4 同时选中这两个项目,点击运行最后说一... 阅读全文
posted @ 2015-04-23 18:34 yufenghou 阅读(419) 评论(0) 推荐(0)
摘要: bool HelloWorld::init(){ if ( !Layer::init() ) { return false; } Size visibleSize = Director::getInstance()->getVisibleSize(); ... 阅读全文
posted @ 2015-04-22 19:23 yufenghou 阅读(269) 评论(0) 推荐(0)
摘要: local options ={ frames = { --frame 1 { x = 0, y = 0, width = 232, height = 276 ... 阅读全文
posted @ 2015-04-14 12:57 yufenghou 阅读(198) 评论(0) 推荐(0)
摘要: 1 图片按照锚点来定位,但是group不按照锚点来定位。 阅读全文
posted @ 2015-04-14 12:02 yufenghou 阅读(88) 评论(0) 推荐(0)
摘要: --------------------------------------------------------------------------------------------- main.lua------------------------------------------------... 阅读全文
posted @ 2015-04-14 10:37 yufenghou 阅读(131) 评论(0) 推荐(0)
摘要: local myGroup = display.newGroup()--Create 2 rectangles and insert them into 'myGroup'local rect1 = display.newRect( myGroup, 0, 0, 40, 40 )local rect... 阅读全文
posted @ 2015-04-14 09:36 yufenghou 阅读(139) 评论(0) 推荐(0)
摘要: display.remove ( myObject )myObject = nil --set reference to nil!--ORmyObject:removeSelf()myObject = nil --set reference to nil!--ORmyGroup:remove( ... 阅读全文
posted @ 2015-04-14 08:03 yufenghou 阅读(145) 评论(0) 推荐(0)
摘要: --------------------------------------------------------------------------------------------- main.lua------------------------------------------------... 阅读全文
posted @ 2015-04-14 08:02 yufenghou 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 43 下一页