This demo shows how to use the OpenGL ES to implement a cool lightning effect.
The origin post is found in cocos2d’s forum here:
Thanks to “mobilebros” and their great “Lightning class”.
I made a little change to the source code so that I can set all the strike point of the lighting effect.
Here is the screen snap:
If you feel all the stuffs in this site helped you a lot and you would buy me a beer