Esempio n. 1
0
    private void GenerateBeholder()
    {
        Monster[] beholder = MonsterGenerator.CreateBeholder(game, GameData.Data.Difficulty);
        Point     p        = map.GetBeholderLocationInMap();

        for (int y = p.Y, row = 0; y < p.Y + 3; y++, row++)
        {
            for (int x = p.X, col = 0; x < p.X + 3; x++, col++)
            {
                int index = col + (row * 3);
                beholder[index].X = x;
                beholder[index].Y = y;
                map.AddMonster(beholder[index]);
            }
        }

        game.beholder = beholder;
    }