Esempio n. 1
0
 static void Main(string[] args)
 {
     //TODO: Update argument checking to allow for extensible argument parameters
     if (args.Length > 0 && args[0] == "-server")
     {
         KappaServer server = new KappaServer();
         server.Start();
     }
     else
     {
         using (var game = new KappaGame())
             game.Run();
     }
 }
Esempio n. 2
0
        public override void Initialize()
        {
            server = new KappaServer();
            client = new KappaClient();
            player = map.CreateEntity(player);

            List <PlayerModel> players = new List <PlayerModel>();

            players.Add(player);

            server.Start();
            client.Start();

            client.ConnectToServer("127.0.0.1", server.ConnectionPort);

            client.SendString("We're connected, baby!");

            _camera = new Camera(KappaGame.Instance.GraphicsDevice.Viewport, 1024, 1024, 1, player);
        }