I’m currently doing some game prototyping using cocos2d-2.0-rc2-x-2.0.1 and noticed a few things
- Android texture bug
I’m trying to make a small game that uses the pixelated look. In my game I’m using a 180x60 px image that is scaled times five its original size. To make sure it is scaling nicely, I’m using this method on the sprite: *pSprite~~>getTexture~~>setAliasTexParameters;*
On Windows this seems to work just fine. When I try it on my Android Phone it works alright when the application/scene is launched the first time. If you pause the application by pressing home and continue it, for some reason the sprites get blurry .
Android screenshot: Initial state
Android screenshot: After resuming
h3. My code
bool bRet = false;
// Init super first.
// ask director the window size
CCSize size = CCDirector::sharedDirector~~>getWinSize;
// add Load sprite
CCSprite* pSprite = CCSprite::create;
// position the sprite on the center of the screen
// Disable anti-aliasing
// Set scale
// add the sprite as a child to this layer
bRet = true;
} while (0);
- BlackBerry platform
I know release cocos2d-2.0-rc2-x-2.0.1 is a release candidate, but I was wondering why there are no files included for the BlackBerry playbook/bb10 platforms? I tried to find the source code on Github, but I could not figure out which repo is containing this release.
The gles20 branch seems to use a very different directory structure
The master branch does include all blackberry scripts but I guess that its still the 1.x branch?