Hey guys, Can anyone provide links to cocos2d tutorials? I've tried googling, but the only one I found is the Monocle Studios one. Any good game tutorials out there?
I don't think any are provided by the cocos2d team because they're hoping you'll purchase their sapus tongue example game. I don't know of any third party tutorials but I haven't actually looked.
The Monocle Studios one is about it. It is really good for getting started, though. After you finish their basic tutorial, look into some of the open source cocos2d games to figure things out, and examine the example code that is distributed with the library. Look here for more documentation: http://www.cocos2d-iphone.org/wiki/doku.php/ I really enjoy using this library, so I recommend giving it a try.
Thanks guys! Games like pocket god, stickwars and flight control, they were developed using OpenGL ES I guess?
StickWars was made with cocos2d actually (which is a wrapper around OpenGL ES). Here is the creator's forum post: http://www.cocos2d-iphone.org/forum/topic/192
The samples included in cocos2d are a very good start for learning. Also the forum: http://www.cocos2d-iphone.org/forum And the blog http://www.cocos2d-iphone.org And riq has begun creating a Wiki for a programming manual: http://www.cocos2d-iphone.org/wiki/doku.php/hello_world
When I just got started with cocos2d, I followed these basic tutorials: http://www.bit-101.com/blog/?p=2138
When starting out building StickWars, the example files that came with cocos2d-iphone pretty much taught me everything as I went. It takes a little while, but trudge through them and you'll get it.
I'd say take cocos2d sources and build your own engine off it. It's trying to be friendly and nice, but you're losing the control over your render (you can't say sprite.Render(x,y), you just throwing it into a list and see what happens), you'll have troubles if you try to make a lot of objects.
Sure you can, you can use texture2d's draw in rect function to do that, or position the sprite and call it's visit function. I do that all the time when rendering to texture. You can also use particle systems or atlas sprites to draw tons of the same object very quickly.
You can even create a generic CocosNode and overwrite the draw method to do entirely custom OpenGL rendering.
Cool. You should write some tutorials, with StickWars being one of the top apps in the app store and all.
Not sure if you re still looking for Cocos2d tutorials, but I found this one really useful. http://morethanmachine.com/macdev/?tag=game-demo-tutorial-series
I read that before, thanks anyway. Somehow I can't get that tutorial's code to work with the Monaccle Studios one...Any good tutorials on OpenGL es game programming? Anything on moving sprites with the press of a button would be good, cocos2d or OpenGL.
These tutorials were helpful in learning openGL ES for me: http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html As for moving a sprite with a button, I would use Irrational Exuberance's guide for detecting touches, modify it to detect a button touch, then apply a velocity to the sprite depending on the button (if you are using physics).