Esempio n. 1
0
 public string get()
 {
     if (!showPlain)
     {
         if (GameText.lastReinit >= lastGet)
         {
             plainText = GameText.getText(text);
             lastGet   = Text.time.Elapsed;
         }
     }
     return(plainText);
 }
Esempio n. 2
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            if (!isTest)
            {
                graphics.IsFullScreen = true;
            }
            this.IsMouseVisible = true;
            int width  = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
            int height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;

            graphics.PreferredBackBufferWidth  = width;
            graphics.PreferredBackBufferHeight = height;
            Content.RootDirectory = "Content";

            scene = new SceneEngine2.SceneHandler();
            SceneEngine2.SceneHandler.content = Content;
            exit = false;

            SceneEngine2.MenuOptions.isFullscreen = !graphics.IsFullScreen;

            GameText.initGameText();
        }