Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contact #2

Open
irodrigo17 opened this issue May 2, 2012 · 0 comments
Open

Contact #2

irodrigo17 opened this issue May 2, 2012 · 0 comments

Comments

@irodrigo17
Copy link

Sorry for posting this here, I'm new to github and I couldn't find another way to contact you.

I'm also new to cocos2d, chipmunk and OpenGL, and while investigating for my first iPhone game and I found your code really usefull as I'm doing a Worms-like game with deformable terrain.

I just can't find a way to use an RGB terrain texture instead of the black & white one you use for the terrain. I understand that the context sampler should use a black & white image and that I don't need to dispay it on screen. I was thinking of hiding it and using a normal CCSprite for the terrain, but I don't know how to "cut" a circle out of my sptrite's texture.

I actually used a custom CCSprite with a color texture instead of the AlphaCutSprite you used and the physics engine continued to work as expected, I just need to update my sprite's texture in the remove methd (I'm not interested in the add method right now) so I can see the background through it.

Can you please give me some direction? My e-mail is [email protected].

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant