示例#1
0
        static void Main(string[] args)
        {
            parser p1 = new parser();
            //p1.createMap();
            //p1.printMap();
            Console.Read();
            Console.WriteLine(parser.game);

            view v1 = new view();
            v1.ShowDialog();

            /*
               connect con = new connect();
               con.send("JOIN#");
               con.listen();

               char str = ' ';
               while (str!='q')
               {
               str = Console.ReadKey().KeyChar;
               if (str == 'w')
                   con.send("UP#");
               else if (str == 's')
                   con.send("DOWN#");
               else if (str == 'a')
                   con.send("LEFT#");
               else if (str == 'd')
                   con.send("RIGHT#");
               else if (str == 'i')
                   con.send("SHOOT#");

               }*/
        }
示例#2
0
 public connect(view v)
 {
     gameView = v;
 }