コード例 #1
0
 protected override void LoadContent()
 {
     spriteBatch  = new SpriteBatch(GraphicsDevice);
     background   = Content.Load <Texture2D>("bg_menu");
     dummyTexture = new Texture2D(GraphicsDevice, 1, 1);
     Color[] colorData =
     {
         Color.White,
     };
     dummyTexture.SetData <Color>(colorData);
     character = new CHARACTER(new Rectangle(350, 280, 50, 100), Content.Load <Texture2D>("charAnimation"),
                               this.Window.ClientBounds.Width, this.Window.ClientBounds.Height);
 }