How to move water in iphone cocos2d? - iphone

I am trying to create an application very similar to iBeer I want to fill iphone from virtual water and can shake it so it produce bubbles? I tried to search any similar example of code as I am very new to cocos2d but I can't. I wanna know how can I do this? Any helpful links? Do I have to use chipmunk or anything else?
Thanks
Mani

Cocos 2D mainly serves to display sprites particules and otehr visual effects
The actual physics of it are handled by Chipmunk.
chipmunk is not so much a fluid engine but given enough small objects you can aproximate something like iBeer.
I remember seeing a video demo of chipmunk that did it.
I'm never did something close to that with chipmunk but try asking on the offcial forum
http://www.slembcke.net/forums/viewforum.php?f=1
they helped me out a lot and the author of chipmunk (scott) is very reactive and helpful.

thats the use of accelerometer and you affine transform your views

This explanation of animated water may be helpful.

Related

Parabolic sprite movement of swipe with speed

I want to move a sprite with swipe gesture, like it start from one place and with angle it end with trajectory, I really don't know where to start this thats why i am not posting any code here. Any direction or piece of code will be appreciated. Note: Should I use cocos2d for this or any physics engine like box2d or chipmunk would be needed?
Regards
I would recommend you start here: http://www.raywenderlich.com/tutorials. There are tons of great a well explained tutorials to help you get started with cocos2d. I might recommend looking into using a physics engine like Box2D. An introduction tutorial is here: http://www.raywenderlich.com/457/intro-to-box2d-with-cocos2d-tutorial-bouncing-balls.

Simple Cocos2d Iphone Game. Just some basic questions

I'm making an app, where the sprite has to run across the screen pressing buttons and jumping and ducking. Kind of like line runner. Anyways, I'm using cocos2d. Is this what i should be using. If it is, how would i make it. Im not asking for all the code, just the basic objectives and what i should do! thanks so much!
Cocos2d is one of the best platform to make game i think what you want to do can be done by cocos2d and you need to know how to move object(sprite) across the scene and how to detect the collation.
there is lots of way to move the sprite across the screen you can also move then by the cocos2d built in methods.
search for move method which will help you.
I would definitely advise you to use Cocos2d for this purpose and also Box2d if you need real physics simulation in your game.
Regarding of writing your game have a look here : It contains very useful cocos2d tutorials and even have a tutorial of how to write a full functioning game (Look for the monkey game)
Note : It seems that the link does not work right now but I am sure it will be fixed soon..

how to move images in openGL ES?

I have developed some how 5 iphone application, but now there is one game, and still I haven't any idea except word open GL ES, I read it a bit but I need some explanation and guidance for developing it.
The theme of game is like "there are many objects are moving from down to upside and i have to pick them and drag in boxes according to their color"
can anyone help me for showing proper way how to achieve, the study sources and other material,,
Thanks in Advance,,,
Not a direct answer but why don't you use an objective-c wrapper like cocos2d. That would speed up the things.
Not a real answer either, but are you sure you need OpenGL ES for that?
If your game is simple enough, you can use only custom UIViews. That would be much easier, especially to handle touch interactions.

How to make objects flying around in a view

How is it possible to let some objects fly around and bumb at the end of the view and collide on each other.
The second step would add acceleration of the objects by shaking.
I haven't found a tutorial yet or some step to begin at.
thanks a lot for your help :)
Heres a picter of what i image(only a still)
http://picfront.org/d/ZdSvK9G8D/flying_circles.jpg
Take a look at Cocos2d for iPhone. Google will help you find many tutorials for this framework.
What you need to search for are tutorials on "Collision Detection." Cocos2D is a great place but you will also need a physics engine - Box2d and Chipmunk are both physics libraries that can be used. Some good videos on youtube for cocos2d tutorials and physics engines to see if this is what you are looking for.
Matthew

Iphone GUI physics code

When you drag an iphone GUI element like a list, it scrolls in a physics correct way, and also has a nice bounce effect at the end.
I would like to write a GUI element in my game, without using UIKit. I wonder where is the code implementing this, and if I can use it instead of trying to write something similar.
Any ideas?
I think that a physics engine would be overkill for just animating a gui element (unless you already have a physics engine in your game).
You could try using animations but I've no experience of doing this without UIKit but I suppose you would start here?
If you didn't want to use Core Animation, I would take a look at Robert Penner's easing equations - they're in actionscript but are pretty simple to port to C and would be a good start to get your own animation code started.
Hope this helps,
Sam
You can perhaps use animations to achieve this, you can define animation paths for bouncing or doing whatever it is you need and activate them when needed. I think the example project MoveMe can help you out
I can recommend the O'Reilly book "Physics for Game Developers" by David Bourg, which has great coverage of algorithms and code for all sorts of simulations. You probably want to start with motion affected by drag for the flick and gradual slowing, then look at a spring model to simulate the damping at the end.
box2d is an open source project that provides a great 2d physics engine.
this library is used by Intel clutter, which is a nice physics oriented UI library that is capable of running on mobile devices. that means that box2d is already optimized for mobile platforms like the iphone.