This is an example of a life counter for player characters. Use up, down, left, right to move the cat but when you touch the X you lose a life.