Hey,
Before asking your question in the forum, read the following tips:
* Are you new to cocos2d and you don't know where to start ?
- Read this introduction to cocos2d:
http://monoclestudios.com/cocos2d_whitepaper.html
* Are you new to objective-c too ?
- Consider reading one of these books:
http://groups.google.com/group/cocos2d-iphone-discuss/web/recommended...
* If you don't know how to use YYY feature, see the demo/test
examples (cocos2d/tests):
- For Sprites, Animations, Actions:
See the 'SpritesDemo'.
It shows how to rotate, move, scale, blink, fade, animate,
"orbit" sprites by using actions
It also shows how to transforms sprites manually.
- For LabelAtlas, TileMapAtlas, TextureAtlas or AtlasSprite:
See the 'AtlasDemo.
It shows how to use the features regarding the Atlas objects
- For Parallax Sroller:
See the ParallaxDemo.
It has 2 examples that shows how to use it.
- For Chipmunk (physics engine):
Chipmunk_Accel: shows how to use the Accelerometer, Sprites & touches.
ChipmunkDemo shows how to use most of the features of Chipmunk
- For CocosLive (High score server):
See the CocosLiveDemo.
- For effects (mesh / grid effects):
EffectsDemo: shows all the available effects
EffectsAdvancedDemo: shows how to combine different effects
- For advanced actions:
SpriteDemo: shows how to use Sequence, Spawn, reverse and CallFunc
EaseDemo: shows how to use time modifier actions
- For Labels or Images in general: formats, alias / antialias, etc:
Texture2dDemo shows how to load different file formats like PNG,
PVR, JPEG, TIFF, etc.
It also shows how to display Mipmap textures
It also shows how to display Aliased or AntiAliased images
It also shows how to use and align Labels
- For Menu:
See MenuTest. It shows everything related to Menus
ItemFont, ItemImage, ToggleItem, aligns, etc.
- For transitions:
Transition Demo shows al the available transitions.
- For particles:
ParticleDemo: It shows how to use the particles
- For scheduler:
IntervalDemo shows how to schedule timers, use pause / resume.
- For anchor points, add / remove children:
See the cocosnode Demo
-Consider running all the demo/tests. They show how to use the
different features.
* If you couldn't find the answer in the demo code, search the forum.
Probably your question has been asked before.
* If you find that the question has been asked, but without an answer,
consider asking your question in that same thread.
* Are you looking for real-game code:
* There some open-source games using cocos2d:
http://code.google.com/p/cocos2d-iphone/wiki/GamesUsingCocos2d
(search for 'Open Source')
* If you want to spend some money and help me financially you can
buy the source code of my own game:
http://www.sapusmedia.com/sources.html
* Do you have problems understanding some concepts ?
See the 'cocos2d for python' programming guide. cocos2d for pyhton
and for iphone share the same concepts.
http://www.cocos2d.org/doc/programming_guide/
* See the best practices also:
http://code.google.com/p/cocos2d-iphone/wiki/BestPractices
* The API documentation is here:
http://www.sapusmedia.com/cocos2d-iphone-api-doc/
Here are some blogs about cocos2d:
* http://blog.sapusmedia.com/search/label/cocos2d
In this blog I post news and tips about cocos2d
* http://kwigbo.com/wp/?cat=15
Blog that has some cocos2d recipes.
Remember, it takes time to answer questions and coding example code.
Respect others people time by following the above mentioned tips
before asking your question.
riq.
--
http://blog.sapusmedia.com
http://monodiario.blogspot.com