Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     System.Diagnostics.Process.GetCurrentProcess().ProcessorAffinity = new IntPtr(1);
     using (SnailsPace game = new SnailsPace())
     {
         game.Run();
     }
 }
Esempio n. 2
0
        public SnailsPace()
        {
            if (_instance != null)
            {
                throw new Exception("There was an attempt to create two Snail's Pace instances.");
            }
            _instance = this;

            graphics = new GraphicsDeviceManager(this);
            inputManager = new Input();
            soundManager = new Sound();
            gameConfig = new GameConfig();
            videoConfig = new VideoConfig();
            highScoreList = new Objects.HighScoreList();

            initializeGameScreens();
        }