Add points for a kill
Subtract points for getting injured
Set a nominal time for completing a level, if you're faster: bonus points. Might even be time dependent.
Or add some coins to be harvested. Once harvested, they're gone. Staying around won't boost xp then.