The game is divided into increasingly difficult levels. You'll play inside a sealed box, and in its interior you might find all sorts of objects. The candy is placed at different points inside it, where it falls down automatically when you start the level. To shake them out of the box you have to tilt the device so they fall towards the gap.
Time will start running backwards once the candy drops down, showing you how much time you have to get all the pieces out. If you can't do it you'll have to start the level over again. You'll also have to be careful tilting your device, since there is much more than just candy scattered inside the box, and you might find obstacles as well. Any wrong move can end your chances of getting the candy to the monkey.