Пример #1
0
        public Pong()
        {
            server = new PongConnection(11000);
            server.Start();

            Singleton = this;

            graphics = new GraphicsDeviceManager(this);

            Content.RootDirectory = "Content";

            state_menu    = new State_Menu();
            state_playing = new State_Playing();

            targetState = state_menu;
        }
Пример #2
0
 /// <summary>
 /// The class constructor.
 /// </summary>
 public State_Menu()
 {
     Start();
     Singleton = this;
 }