The player has to collect total of 200 points to spawn a red key at the end of the level. Points can be earned by collecting gems along the way or stamping onto the enemies. By reaching the key the level ends and re-spawns the player.
The fail state can be triggered by falling into the water below or by being hit by an enemy. And that is it.