コード例 #1
0
ファイル: Player.cs プロジェクト: GinJou89/Bomberman
        public Player(PictureBox _player, PictureBox[,] _mapPic, Sost[,] _map, Label lbScore)

        {
            player    = _player;
            step      = 3;
            score     = lbScore;
            countBomb = 3;
            lenFire   = 3;
            bombs     = new List <Bomb>();
            moving    = new MovingClass(_player, _mapPic, _map, AddBonus);
            ChangeScore();
        }
コード例 #2
0
ファイル: Mob.cs プロジェクト: GinJou89/Bomberman
 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, addBonus);
     mobPlace    = moving.MyCurrentPossition();
     destinPlace = mobPlace;
     CreateTimer();
     timer.Enabled = true;
 }