예제 #1
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (image != null)
     {
         image.Draw(gameTime, spriteBatch);
     }
 }
예제 #2
0
 protected override void Draw(GameTime gameTime)
 {
     GraphicsDevice.Clear(Color.Black);
     spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, spriteScale);
     gameStateManager.Draw(gameTime, spriteBatch);
     spritemouse.Draw(gameTime, spriteBatch);
     spriteBatch.End();
 }
예제 #3
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     // draw the image if it exists
     if (image != null)
     {
         image.Draw(gameTime, spriteBatch);
     }
 }
예제 #4
0
파일: Tile.cs 프로젝트: krsi721424/2dGame
 public override void Draw(Graphics graphics)
 {
     if (image != null)
     {
         image.Draw(graphics);
         this.Rectangle = image.BoundingBox;
     }
 }
예제 #5
0
파일: Tube.cs 프로젝트: nasr250/Valkan
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     if (visible)
     {
         substance.Draw(gameTime, spriteBatch);
     }
 }
예제 #6
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (!Visible)
     {
         return;
     }
     arrow.Draw(gameTime, spriteBatch);
     alignment.Draw(gameTime, spriteBatch);
 }
예제 #7
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     if (!Visible)
     {
         return;
     }
     container.Draw(gameTime, spriteBatch);
     text.Draw(gameTime, spriteBatch);
 }
예제 #8
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     if (!Visible)
     {
         return;
     }
     for (int i = 0; i < pairs.Length; i++)
     {
         pairSprite.Position          = new Vector2(110 + i * Sprite.Height, 8);
         pairSprite.Sprite.SheetIndex = pairs[i];
         pairSprite.Draw(gameTime, spriteBatch);
     }
 }
예제 #9
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     overlay.Sprite.Size = new Vector2(1, timer / waittime);
     overlay.Draw(gameTime, spriteBatch);
 }
예제 #10
0
 public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
 {
     base.Draw(gameTime, spriteBatch);
     box.Draw(gameTime, spriteBatch);
     descritption.Draw(gameTime, spriteBatch);
 }