Score is based on your combined time survived in a level and also bonuses such as collecting power-ups.