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:
http://www.cocos2d-iphone.org/forum/topic/370
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 ![]()
Or get a game I made


☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆





hey what plugin do you use for the wp share list container. the thing with the social icons that hover scroll above “This entry was posted in cocos2d, Develop, Simple Demo. Bookmark the permalink” . By the way i can only access the downloads page through a post would be good if you added a link on the menu. thx
The plugin I use for the site can be found here:
And thanks for you suggestion I will add a link to the demo list page on the menu later
Pingback: Computer Programming: How can you use lighting in Cocos2D? - Quora