上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页

2013年9月14日

摘要: http://www.mindmap8.com/Kindle_Paperwhite/20130726266.htmlhttp://blog.csdn.net/felomeng/article/details/6958375http://bbs.mydoo.cn/forum-kindle-1.html 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(131) 评论(0) 推荐(0)

摘要: http://blog.csdn.net/xiaominghimi/article/details/6937685从今天开始Himi将陆续更新cocos2d-X的博文,毕竟cocos2d-X的跨平台确实很有诱惑力,尤其是网龙公司的《91部落》手机网游更让Himi有了深入cocos2dX的价值,那么今天Himi来分享如何在Mac系统下搭建cocos2d-X引擎吧; 首先到Cocos2d-X下载地址下载最新版,Himi下载的是cocos2d-1.0.1-x-0.9.2.zip此版本对于iOS5做了些兼容正好适合,那么可能随着时间推沿,童鞋们看到此篇的时候可能已经不是1.0.1是最新版了,那么这里. 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(292) 评论(0) 推荐(0)

摘要: IntroductionCCControl is inspired by the UIControl API class from the UIKit library of CocoaTouch. It provides a base class for Cocos2D control such as CCControlButton or CCControlSlider that convey user intent(用户意图) to the application.The goal of CCControl is to define an interface and a base imple 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(412) 评论(0) 推荐(0)

摘要: Coordinate SystemIntroduction of Different Coordinate SystemsCartesian Coordinate SystemUI Coordinate SystemDirect3D Coordinate SystemOpenGL and Cocos2d Coordinate SystemParent and ChildrensAnchor PointgetVisibleSize, getVisibleOrigin vs getWinSizeHow to convert co-ordinatesconvertToNodeSpace:conver 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(613) 评论(0) 推荐(0)

摘要: ScenesDirectorLayersMultiple Layers Example:SpritesReferencesScenesA scene (implemented with the CCScene object) is more or less an independent piece of the app workflow. Some people may call them “screens” or “stages”. Your app can have many scenes, but only one of them is active at a given time.Fo 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(212) 评论(0) 推荐(0)

摘要: In this chapter, we would add background music to the game and play sound effect when the hero fires bullets.Because there’s so few codes to add that we could say a little more about audio engine here. Cocos2d-x has wrapped SimpleAudioEngine to cross platforms. In our game, we are able to play music 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(315) 评论(0) 推荐(0)

摘要: Now, we want to let the hero fire some bullets to kill the enemies, add the codes below to set the layer touch-enabled.1// cpp with cocos2d-x2this->setTouchEnabled(true); or this->setIsTouchEnabled(true);Then we could receive the touch event now. Declare the callback function "void ccTouc 阅读全文

posted @ 2013-09-14 10:59 Flex/AS Programmer 阅读(192) 评论(0) 推荐(0)

摘要: ps:批量导出图片:文件 脚本 将图层导出到文件 (图层不能处于文件夹之内)无法从转换为“cocos2d::extension::SEL_CCControlHandler要加命名空间 cocos2d::extension::CCControlEventshttp://g.51cto.com/game在VS010中使用CCLOG轻松输出调试信息) ctrl+F5 无法查看到输出信息 要按F5 才能查看输出信息 http://space.itpub.net/14466241/viewspace-743908 How to use CCLOG http://www.cocos... 阅读全文

posted @ 2013-09-14 10:58 Flex/AS Programmer 阅读(245) 评论(0) 推荐(0)

摘要: 猴子原创,欢迎转载。转载请注明: 转载自Cocos2D开发网–Cocos2Dev.com,谢谢!原文地址: http://www.cocos2dev.com/?p=304在cocos2d-x 2.x版本中,iphone设备设置Retina高清模式已经不是原来的在高清图后面加-hd后缀了。2.x以前开启高清模式之后,底层会在addImage的时候自动在图片名称后面加-hd,优先加载-hd的图片,没有-hd的话,在加载原始图。(ipad是-ipad,ipad高清是-ipadhd)。2.0.3已经移除了这个模式(好像是2.0.2就改了),2.x之后将文件管理写成了一个共享单例类:CCFileUtil 阅读全文

posted @ 2013-09-14 10:57 Flex/AS Programmer 阅读(293) 评论(0) 推荐(0)

摘要: 引擎引入引用计数来管理内存,然后为了方便开发者,把C++的东西包装了一下,搞的有点类似O-c了。很多地方都能看到这样的结构,又叫“二阶段构造”。如下流程: 最下面有一个宏定义的函数CREATE_FUNC(StartMenu),看代码知道他就是一个create()函数。首先new一个对象,然后看其init()函数的返回值,init成功则将对象添加到自动释放池,否则返回null。所以如果用这个结构来定义类,就需要实现init()函数。 阅读全文

posted @ 2013-09-14 10:57 Flex/AS Programmer 阅读(163) 评论(0) 推荐(0)


上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3