Пример #1
0
        static void Main(string[] args)
        {
            Point player, shkaf;

            Model.Cell[,] map;
            ParseChar("C:\\Users\\Sergey\\Desktop\\test1.txt", out player, out shkaf, out map);
            var game = new ModelWithLogic(map, player, shkaf, 5);

            game.SpawnBottle();
            string res = game.Start();
        }
Пример #2
0
 public GameForm()
 {
     SoundStart();
     InitializeComponent();
     playerBrush     = new SolidBrush(Color.Violet);
     freeBrush       = new SolidBrush(Color.White);
     wallBrush       = new TextureBrush(Resources.stone);
     playerAreaBrush = new TextureBrush(Resources.peevo);
     shkafImage      = Resources.skaf;
     Parser.ParseChar("Map_design.txt", out player, out shkaf, out map);
     game = new ModelWithLogic(map, player, shkaf, 5);
     //string res = game.Start();
     timer1.Interval = 1000 / 60;
     gameUpdTimer    = new Stopwatch();
     timer2.Interval = 1000;
 }