Game Concept Progress

Still not going to give away any details on the game this soon, BUT here is another video teaser of my iPhone game using Cocos2D and Box2D and a ton of radial gravity. :)

There are no fancy graphics yet, and won’t be for quite some time.


Random Posts:

If you found this useful, shoot me a small donation or at the very least leave a comment, every bit of encouragement helps keep me motivated to update with more content on a regular basis!

Comments

*

4 Responses to “Game Concept Progress”

  1. Devin Lansing says:

    I’m intrigued. Could you share how you worked out the multiple points of gravity?

  2. Nick Vellios says:

    Yes, in time. Check back frequently. :)

  3. Chue says:

    I wanted to create lines like these, how do i create them? I”m starting new still with cocos2d.

  4. Nick Vellios says:

    Are you referring to the curvy lines? See the Box2D test bed, specifically “Edge Shapes.”

    Here is a snippet from that example:

    		// Ground body
    		{
    			b2BodyDef bd;
    			b2Body* ground = m_world->CreateBody(&bd);
    
    			float32 x1 = -20.0f;
    			float32 y1 = 2.0f * cosf(x1 / 10.0f * b2_pi);
    			for (int32 i = 0; i < 80; ++i)
    			{
    				float32 x2 = x1 + 0.5f;
    				float32 y2 = 2.0f * cosf(x2 / 10.0f * b2_pi);
    
    				b2PolygonShape shape;
    				shape.SetAsEdge(b2Vec2(x1, y1), b2Vec2(x2, y2));
    				ground->CreateFixture(&shape, 0.0f);
    
    				x1 = x2;
    				y1 = y2;
    			}
    		}
    

    Let me know if you have any questions. This is Box2D specific, NOT Cocos2D.

Twitter Me