mhamon1992 / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

Example for Infinitely Repeating Parallax #114

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have been figuring out a way to implement an infinitely repeating parallax.
I have tried using :

CCSprite background = CCSprite.sprite("background_island.png");
CCTexParams params = new 
CCTexParams(GL10.GL_LINEAR,GL10.GL_LINEAR,GL10.GL_REPEAT,GL10.GL_REPEAT);
            background.getTexture().setTexParameters(params);

But it only extends the background in 1 direction. I guess I have to use 2 
sprites, such that as soon as 1st finishes, the other starts and vice versa, 
but I'm stuck with the implementation.

Original issue reported on code.google.com by s.ve...@apostek.com on 21 Dec 2011 at 7:27

GoogleCodeExporter commented 8 years ago
It will be great to have an example of this kind

Original comment by saurabh...@gmail.com on 21 Dec 2011 at 7:29