cocos2d iPad游戏移植到iphone最简单的方式(缩小OpenGLView)
2012-11-01 12:41
357 查看
//Add this code after "make the OpenGLView a child of the view controller" in the AppDelegate.m //This will shrink the content of the ipad to fit on the iphone smoothly. if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { //0.9375/2 = 0.46875 * 1024 = 480 glView.layer.transform=CATransform3DMakeScale(0.9375/2, 0.9375/2, 1); glView.layer.transform=CATransform3DTranslate(glView.layer.transform, -580, -480+37, 0); }
相关文章推荐
- IPhone IPad 利用cocos2d开发游戏问题
- cocos2d-x游戏iphone移植到android需要注意事项
- 【cocos2d-x】如何使用Cocos2D-x制作一款简单的iphone&Android游戏①
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- cocos2d-x游戏iphone移植到android需要注意事项
- 零基础实战iphone、ipad游戏开发(cocos2d、cocos2d-x、Unity3d)四大游戏项目
- 《Cocos2d-x for iPhone游戏开发实例详解---1.5 绘制OpenGL图元》
- 【cocos2d-x】如何使用Cocos2D-x制作一款简单的iphone&Android游戏②
- [cocos2d-iPhone] 游戏中简单加密,防止八门神器
- Cocos2D 2.1开发简单iPhone游戏(3)
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- 【Cocos2d-X(2.x) 游戏开发系列之三】最新版本cocos2d­2.0­x­2.0.2使用新资源加载策略!不再沿用-hd、-ipad、-ipadhd添加后缀方式
- iphone游戏开发 资料索引 cocos2d, OpenGL ES
- 【iOS-Cocos2d游戏开发之八】开启高清(960*640)模式问题与解答、图片适配以及设置iphone横竖屏
- 【iOS-Cocos2d游戏开发之十九】游戏数据存储的四种常用方式NSKeyedArchiver/NSUserDefaults/Write写入/SQLite3
- Cocos2d-x HD 游戏在iPad 2上的闪屏修复
- iPhone开发之游戏篇(2) --- cocos2d的Actions
- 《Cocos2D-iPhone 游戏开发之路》第5节 高仿<Flappy Bird>教程(3)