All pastes #267354 Raw Edit

Pac Man pellet remov

public text v1 · immutable
·published 2006-12-04 20:21 UTC
rendered paste body
for(int i = pellets.Count - 1; i > -1; i--)
{
  if( pacMan.CollidesWith(pellets[i]))
  {
      pacMan.GivePoints(10);
      sprMan.RemoveSprite(pellets[i]);
  }
}