Пример #1
0
 static internal void InitializeControl()
 {
     _hero = new Hero(10);
     laba  = new Labirinth(_hero.Level);
     Draw.DrawBackgroundImage(laba, _hero.Level);
     Draw.ReDrawHero(_hero.HeroPositionX, _hero.HeroPositionY, _hero.HeroPositionX, _hero.HeroPositionY, _hero.Level);
 }
Пример #2
0
        internal static void DrawBackgroundImage(Labirinth laba, int Level)
        {
            Graphics g = Graphics.FromImage(backgroundBitmap);



            g.FillRectangle(Brushes.White, 0, 0, 800, 800);
            g.DrawRectangle(new Pen(Color.Red, 1.0f), 0, 0, 799, 799);

            DrawGeneratedLabirinth(laba.GeneratedLabirint, g, Level);
        }