Example #1
0
 public Player(PictureBox _player, PictureBox[,] _mapPic, Sost[,] _map, Label lbScore)
 {
     score   = lbScore;
     player  = _player;
     step    = 3;
     kolBomb = 3;
     lenFire = 3;
     moving  = new MovingClass(_player, _mapPic, _map);
     bombs   = new List <Bomb>();
     ChangeScore();
 }
Example #2
0
        public Mob(PictureBox picMob, PictureBox[,] _mapPic, Sost[,] _map, Player _player)
        {
            mob    = picMob;
            map    = _map;
            player = _player;
            fmap   = new int[map.GetLength(0), map.GetLength(1)];
            path   = new Point[map.GetLength(0) * map.GetLength(1)];

            moving       = new MovingClass(picMob, _mapPic, _map);
            mobPlace     = moving.MyNowPoint();
            destinePlace = mobPlace;

            CreateTimer();
            timer.Enabled = true;
        }