Corona SDK example showing how to use a beating heart as a life meter. Also shows how to change the pitch of a backing track and keep the animation in synch with it.
mask
To help with the calculation of physics collision categories and masks there is an excellent table available:
http://forums.coronalabs.com/topic/2128-collision-filters-helper-chart/