2012年8月17日

摘要: 对全屏的截图我们可以通过按 苹果键(花键)+Shift键+3来执行,之后伴随着清脆的一声提示音后,在桌面上就会生成一个图片文件,这就是刚刚截屏的图片了,默认文件类型是PNG的。 自定义截屏是很方便的一个功能,是可以通过按 苹果键(花键)+ Shift键 + 4来执行,当执行组合按键之后鼠标指针的光标会变成十字,现在你就可以画出你想要截取屏幕的范围了,画好后截出的图片也会放在桌面上。另外,如果在按 苹果键(花键)+Shift键+4后按下 空格键,鼠标指针就会变成一个小照相机,这时是截取对象方式的截屏,把小照相机放在你想截图的窗口上按鼠标左键后就执行了对该窗口的截屏,很方便吧,还有一个用法就... 阅读全文
posted @ 2012-08-17 17:15 dqshll 阅读(177) 评论(0) 推荐(0)
摘要: when you want to convert your music or sound effect file to your ios application, you need to convert them to some audio format even though iOS can support many format to achieve performance and decrease your app size.there are some good command0: afplay xxx.xxx can test if it can be played after yo 阅读全文
posted @ 2012-08-17 17:14 dqshll 阅读(324) 评论(0) 推荐(0)
摘要: There are 4 resolution ios devices currently: iphone, iphone 4(s), ipad1/2, new ipad, feel painful about this? don't tell your feeling to android developers.in cocos2d, just use suffix to the image files or atlas as below rules:static NSString *__suffixiPhoneRetinaDisplay =@"-hd"; // f 阅读全文
posted @ 2012-08-17 17:10 dqshll 阅读(187) 评论(0) 推荐(0)
摘要: some time we need to figure out if any resoures files are already packed in the app. we can find it from mac under the path as below, in this case the app name is 3dhw:/Users/dingqun2008/Library/Developer/Xcode/DerivedData/3dhw-dychilwmyhglaeaalsypvckomsud/Build/Products/Debug-iphoneos/3dhw.app/3dhw 阅读全文
posted @ 2012-08-17 16:59 dqshll 阅读(160) 评论(0) 推荐(0)
摘要: 1. create a batchnode like with the picture created by Textures PakerCCSpriteBatchNode *spriteSheet =[CCSpriteBatchNode batchNodeWithFile:@"AnimBear.jpg"];2. cache sprite frames with plist (also created together with above)[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFil 阅读全文
posted @ 2012-08-17 16:56 dqshll 阅读(212) 评论(0) 推荐(0)

导航