示例#1
0
        void OnServerConnect(object sender, EventArgs e)
        {
            client = Client.SetClient(server.client);

            me = new Paddle(this, new Vector2(720, 300));
            you = new Paddle(this, new Vector2(80, 300));
            Components.Add(me);
            Components.Add(you);

            state = PongState.Game;
        }
示例#2
0
        void OnClientConnect(object sender, EventArgs e)
        {
            me = new Paddle(this, new Vector2(80, 300));
            you = new Paddle(this, new Vector2(720, 300));
            Components.Add(me);
            Components.Add(you);

            state = PongState.Game;
        }