how did they make the explosions in Geodefense?

Discussion in 'Public Game Developers Forum' started by 99c_gamer, May 29, 2009.

  1. 99c_gamer

    99c_gamer Well-Known Member

    Mar 23, 2009
    659
    0
    0
    The ones with the particles flying everywhere?

    Can you do that by animating a bunch of tiny Objects or is that way too inefficient?
     
  2. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    Why don't you ask him? He hangs around here in the forums.

    I would do it with normal OpenGL lines, they are very fast.
     
  3. 99c_gamer

    99c_gamer Well-Known Member

    Mar 23, 2009
    659
    0
    0
    I might have found the answer. Coco2d for iphone has a particle system class. Or you can make the particle system yourself using OpenGL.

    I'm still new to iphone programming so I'm trying to figure out if games are mostly made using the UIkit classes or one level deeper.
     
  4. Anders

    Anders Well-Known Member

    Feb 3, 2009
    1,634
    0
    0
    Co-owner and CTO at Color Monkey
    Sweden
    OpenGL is just for graphics. It only contains pretty low level graphics operations, i.e. it lets you draw lines, shaded and/or textured triangles, helps with culling, transforms etc. In other stuff, you have to know your stuff, but you will also have total freedom to do whatever you want to do, which is not always the case with pre-made engines (I haven't used Coco2d so I don't know anything about it).

    OpenGL does not load textures or meshes for you, it simply draws what you feed it and how you tell it to draw it. For good OpenGL tutorials, NeHe is a good start. I saw that someone had rewritten them for OpenGL ES (that's what you have on your iDevice): http://embedded.org.ua/opengles/lessons.html

    A particle system is completely separated from graphics. In fact, it is good practice to separate graphics from logic (or physics in this case). You can write your particle system in any language (C, C++, ObjC), and let whatever system draw it (OpenGL, Coco2d etc).
     
  5. Steve Oldmeadow

    May 22, 2009
    23
    0
    0
    Cocos2d wasn't used for GeoDefense although the developer is now using cocos2d. You are correct though, cocos2d's particle engine could be used for the type of effect you are after. Cocos2d is built on top of OpenGL ES and still gives you plenty of opportunity to dip down into low level coding if you require it.
     

Share This Page