You are the white box, your move is your attack. If you are moving and colliding with enemies (red boxes) you kill them. If they collide with you while you are stationary they damage you.

Enemies spawn hope points (yellow squares) when they die. Collect them for score. Enemies also drop green power ups that have various effecs for a limited duration.