Ejemplo n.º 1
0
        protected override void Initialize()
        {
            Common.Initialize(this);
            Window.AllowUserResizing = true;
            bullets = new List <Bullet>();
            graphics.PreferredBackBufferWidth  = 1920;
            graphics.PreferredBackBufferHeight = 1080;
            graphics.ApplyChanges();
            a = new FlareFxAlt(graphicsDevice, 40, 40, "Test2");
            MeteorBullet.flarefx    = new FlareFx(graphicsDevice, 40, 40, "Test");
            MeteorBullet.flarefxAlt = a as FlareFxAlt;
            mousePos    = new Vector2[15];
            text        = new DynamicTextureText(graphicsDevice, new System.Drawing.Font("华文中宋", 50), "Stellaris");
            vertexBatch = new VertexBatch(graphicsDevice);
            swordFx     = new SwordFx(GraphicsDevice, 1);

            u = new UIBase();
            base.Initialize();
        }
Ejemplo n.º 2
0
 protected override void Initialize()
 {
     Common.Initialize(this);
     Window.AllowUserResizing = true;
     bullets = new List <Bullet>();
     graphics.PreferredBackBufferWidth  = 1920;
     graphics.PreferredBackBufferHeight = 1080;
     graphics.ApplyChanges();
     a = new FlareFxAlt(graphicsDevice, 40, 40, "Test2");
     MeteorBullet.flarefx    = new FlareFx(graphicsDevice, 40, 40, "Test");
     MeteorBullet.flarefxAlt = a as FlareFxAlt;
     mousePos    = new Vector2[15];
     vertexBatch = new VertexBatch(graphicsDevice);
     swordFx     = new SwordFx(GraphicsDevice, 1);
     u           = new UIBase();
     text        = new DynamicTextureTextGDI(graphicsDevice, Environment.CurrentDirectory + Path.DirectorySeparatorChar + "SourceHanSansCN-Regular.ttf", 40, "***ABCD文字绘制测试\nStellaris\n增益免疫汉化组");
     dtt         = new DynamicTextureFont(graphicsDevice, Environment.CurrentDirectory + Path.DirectorySeparatorChar + "SourceHanSansCN-Regular.ttf", 80);
     tex         = Texture2D.FromStream(graphicsDevice, File.OpenRead(Environment.CurrentDirectory + @"\Extra_197.png"));
     tex2        = Texture2D.FromStream(graphicsDevice, File.OpenRead(Environment.CurrentDirectory + @"\Extra_194.png"));
     tt          = new TestTex(graphicsDevice, 70, 70);
     base.Initialize();
 }