You're a stone that rolls either on the ground, or on the ceiling. This depends on the gravity that you've set at that moment. Collect gems and avoid walls. Be careful, too, not to fall into the ravine!
Press the left mouse button or the spacebar to reverse gravity. You can do this 3 times at most before you have to land again.