Esempio n. 1
0
 public void LoadTextures(ContentManager a_content)
 {
     tileSprites             = new TileSpriteManager(a_content.Load <Texture2D>("Tiles/CB_tiles_2k_d"), 5, 5, 23);
     vsBackgroundTexture     = a_content.Load <Texture2D>("Backgrounds/background_2_d");
     vsSourceRect            = new Rectangle(0, 0, vsBackgroundTexture.Width, vsBackgroundTexture.Height);
     singleBackgroundTexture = a_content.Load <Texture2D>("Backgrounds/background_4_d");
     singleSourceRect        = new Rectangle(0, 0, singleBackgroundTexture.Width, singleBackgroundTexture.Height / 2);
 }
Esempio n. 2
0
 public void Draw(SpriteBatch a_spriteBatch, TileSpriteManager a_SpriteManager)
 {
     a_SpriteManager.Draw(a_spriteBatch, inputWanted, new Rectangle((int)v4Position.X, (int)v4Position.Y, (int)v4Position.Z, (int)v4Position.W));
     //spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend);
     ////spriteBatch.Draw(texture, v2Position, Color.White);
     //spriteBatch.Draw(texture, new Rectangle((int)v4Position.X, (int)v4Position.Y, (int)v4Position.Z, (int)v4Position.W), Color.White);
     //spriteBatch.End();
 }