It is currently Fri May 24, 2013 5:03 am

All times are UTC - 8 hours




 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: list of useful code snippets
PostPosted: Wed Jan 11, 2012 4:29 pm 
Nice work with your book, I really like the cookbook idea. It's very useful for beginning and more experienced programmers.

I have a habit of bookmarking useful code snippets, so let's kick start this section :)

Besides the code snippet page on the wiki I've also come across this ones. I guess a few things are already in your book, but I'm not going to bother with cross referencing.

forum title (comments) - link
100% working solution for the pinch-zoom & pan-move with boundaries control?? - http://www.cocos2d-iphone.org/forum/topic/19178
HKTMXTiledMap (more efficient tile map implementation) - http://www.cocos2d-iphone.org/forum/topic/17945
Additive Coloring Solution? Thoughts? (tinting sprites with a certain color) - http://www.cocos2d-iphone.org/forum/topic/20487
[code] Water ripples (top down ripples) - http://www.cocos2d-iphone.org/forum/topic/25090
Pixel Perfect Collision Detection using Color Blending (performance can still be improved) - http://www.cocos2d-iphone.org/forum/topic/18522
[Class] Flocking/Steering Behavior/Boid class - http://www.cocos2d-iphone.org/forum/topic/9710
Adding UIGestureRecognizer support in cocos2d - http://www.cocos2d-iphone.org/forum/topic/8929
Random Tile Maps - Computer Generated TMX - http://www.cocos2d-iphone.org/forum/topic/6343
Breaking Glass: ShatteredSprite - http://www.cocos2d-iphone.org/forum/topic/19523
Help with Electricity (add additive blending to make it cooler) - http://www.cocos2d-iphone.org/forum/topic/370
Notifications in OpenGL (Like Openfeint) - http://www.cocos2d-iphone.org/forum/topic/5269
Device Camera Overlay and Real-time Manipulation - http://www.cocos2d-iphone.org/forum/topic/14918
Saved state encryption (encrypt saved data with AES256)- http://www.cocos2d-iphone.org/forum/topic/6982
How To Give Your Game Dynamic Background Music - http://www.cocos2d-iphone.org/forum/topic/9247


  
 
 Post subject: Re: list of useful code snippets
PostPosted: Wed Jan 11, 2012 4:35 pm 
I didn't see the board message that this section is only intended for fully working code snippets. In that case this topic would be more appropriate in the suggestions section. Not all links have fully working examples.


  
 
 Post subject: Re: list of useful code snippets
PostPosted: Wed Jan 11, 2012 5:03 pm 
Site Admin
User avatar

Joined: Wed Jan 11, 2012 1:57 pm
Posts: 12
Location: Los Angeles, CA
Great post. I think its fine to keep it here for reference even though its not a single fully working piece of code. They seem sufficiently interesting and I'd like to take a look at them. :)


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

cron