Example #1
0
        private void pointsEvent()
        {
            PoinT colide = points.pointInRange(guy);

            if (colide != null)
            {
                guy.sizePlus();
                Can.Children.Remove(colide.rect);
                if (points.points.Count < 1)
                {
                    points.newPoints();
                    initPoints();
                }
            }
            points.redraw();
        }
Example #2
0
 private void playerMove(Person guy)
 {
     try{
         guy.moveUpdate();
         if (guy.getSize() <= 1)
         {
             guy.dead();
         }
         if (walls.inRange(guy) && guy.lives < 1)
         {
             guy = null;
         }
         guy.giveBonus(points.pointInRange(guy));
         guy.redraw();
     }catch (Exception) { exitEvent(this, EventArgs.Empty); }
 }