Cocos2d tutorials?

Discussion in 'Public Game Developers Forum' started by kohjingyu, Jun 27, 2009.

  1. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    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?
     
  2. PixelthisMike

    PixelthisMike Well-Known Member

    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.
     
  3. allenfjordan

    allenfjordan Active Member

    May 21, 2009
    39
    0
    0
    Senior Computer Specialist at NOAA
    Colorado
    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.
     
  4. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Thanks guys! Games like pocket god, stickwars and flight control, they were developed using OpenGL ES I guess?
     
  5. allenfjordan

    allenfjordan Active Member

    May 21, 2009
    39
    0
    0
    Senior Computer Specialist at NOAA
    Colorado
    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
     
  6. coolman

    coolman Well-Known Member

  7. Shroomies

    Shroomies Member

    Jan 16, 2009
    22
    0
    0
  8. coolman

    coolman Well-Known Member

    Yes, I forgot this ones
     
  9. LongJohnnyE

    LongJohnnyE Well-Known Member

    Apr 3, 2009
    56
    0
    0
    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.
     
  10. jaguard

    jaguard Well-Known Member

    Feb 13, 2009
    132
    0
    0
    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.
     
  11. slipster216@gmail.com

    [email protected] Active Member

    Mar 11, 2009
    39
    1
    0
    Game Developer
    Boston, mass
    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.
     
  12. allenfjordan

    allenfjordan Active Member

    May 21, 2009
    39
    0
    0
    Senior Computer Specialist at NOAA
    Colorado
    You can even create a generic CocosNode and overwrite the draw method to do entirely custom OpenGL rendering.
     
  13. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    Cool. You should write some tutorials, with StickWars being one of the top apps in the app store and all.
     
  14. kohjingyu

    kohjingyu Well-Known Member

    Mar 20, 2009
    1,770
    0
    0
    Student/Developer
    Singapore
    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.
     

Share This Page