摘要:
auto layer = Layer::create(); /*************华丽分割线*************/ auto layer = LayerColor::create(Color4B(255, 0, 0, 255), 150, 150); /****... 阅读全文
posted @ 2015-09-28 20:33
养眼大魔王
阅读(343)
评论(0)
推荐(0)
摘要:
各种方法创建Sprite和Animate //图片创建法 参数一:图片资源路径 参数二:Rect选区 auto sprite = Sprite::create("Images/grossini_dance_atlas.png", Rect(x, y, 85, 121)); addC... 阅读全文
posted @ 2015-09-28 19:16
养眼大魔王
阅读(2466)
评论(0)
推荐(0)
摘要:
在多个场景切换时候,场景的生命周期会更加复杂。这一节我们介绍一下场景切换生命周期。多个场景切换时候分为几种情况:情况1,使用pushScene函数从实现HelloWorld场景进入Setting场景。情况2,使用replaceScene函数实现从HelloWorld场景进入Setting场景。情况3... 阅读全文
posted @ 2015-09-28 18:02
养眼大魔王
阅读(727)
评论(0)
推荐(0)