Porting Over iPad game to iphone the easy way cocos2d
2013-01-25 15:39
351 查看
//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); }
相关文章推荐
- Porting Over iPad game to iphone the easy way cocos2d
- The Easy Way To Get Recent Comments In WordPress
- The easy way to run Powershell 2.0 using .NET Framework 4.0
- (iPhone/iPad开发)how to browse the document directory of iOS Devices
- The Easy Way to Extract Useful Text from Arbitrary HTML
- http://ai-depot.com/articles/the-easy-way-to-extract-useful-text-from-arbitrary-html/
- How To Make A Simple iPhone Game with Cocos2D 3.0 Tutorial
- learn iPhone and iPad cocos2d Game Development" 学习(Tips 5
- The Easy Way to Extract Useful Text from Arbitrary HTML 从HTML文件中抽取正文的简单方案
- "learn iPhone and iPad cocos2d Game Development" 学习(Tips 5)
- The Easy Way to Setup PostgreSQL 10 Logical Replication
- raywenderlich—Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3
- Easy way to install the bluetooth(BCM2045A)
- Rotating Turrets: How To Make A Simple iPhone Game with Cocos2D Part 2
- Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3
- iphone游戏开发-Collisions and Collectables: How To Make a Tile Based Game with Cocos2D Part 2
- The Easy Way to Extract Useful Text from Arbitrary HTML
- Easy way to estimate a table size in the future
- Head First Design Pattern - 2 - A Subject and Observer spar over the right way to get state information to the Observer