Archive for the 'ipad' Category

cocos2d and iPad 2

IMPORTANT:

If your iPad game / app is using a 3D projection (the default one) with a depth buffer, you might need to patch your code. It seems that moving a background image of a certain size produces artifacts on iPad 2 using iOS 4.3 / 4.3.1.

Further info:

From the research that I’ve done, I believe it is an iPad 2 bug, and not a cocos2d bug (see my comments on Issue #1159). But if someone finds a way to prevent this bug by patching cocos2d, please let me know and I happily apply the patch.

For the moment, the proposed workarounds are:

// alternative A:
// Disable Depth Test. Re-enable it only when you need it.
[[CCDirector sharedDirector] setDepthTest: NO];
// alternative B:
// Use a 2D projection. Switch to a 3D projection only when you need it.
[[CCDirector sharedDirector] setProjection:kCCDirectorProjection2D];

cocos2d v0.99.0-rc – iPad compatible

cocos2d v0.99.0-rc has been released.

Download: http://cocos2d-iphone.googlecode.com/files/cocos2d-iphone-0.99.0-rc.tar.gz

Release Notes: http://www.cocos2d-iphone.org/wiki/doku.php/release_notes:0_99_0_rc

Full Changelog: http://cocos2d-iphone.googlecode.com/svn/tags/release-0.99.0-rc/CHANGELOG

New features (from v0.9-beta2):

  • iPad compatible: cocos2d and the cocos2d tests work in any screen size (480×320, 1024×768,…) (please read the iPad SDK to learn how to create 1024×768 projects)
  • Uses Chipmunk v5.1 and Box2d r39
  • New Camera: easier to use, has more features but it also has new limitations
  • Improved speed in different components: Actions, Scheduler, BitmapFontAtlas, Camera, Node, Sprite, Touch Handler

What’s next:

  • v0.99.0 (final). No new features will be added, only important bug fixes, or opportunistic fixes.
  • Scheduler improvements, Blocks and other features will be added during the v0.99 series

This is a Release Candidate version. It means:

  • It is not yet the “final” v0.99.0 version.
  • Unless there is something totally wrong, there won’t be any changes in the API.
  • No new features will be added (unless “opportunistic” ones).

Update: If you see gray borders on your images, please update to SVN r1761 or just replace the CCSprite.m file with this file: CCSprite.m




Social Widgets powered by AB-WebLog.com.