示例#1
0
 public void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(ContentHandler.Images["Player_1"],
                      new Rectangle((int)Position.X, (int)Position.Y, ContentHandler.Images["Player_1"].Width, ContentHandler.Images["Player_1"].Height),
                      null,
                      Player.CurrentColor,
                      0f,
                      new Vector2((int)(ContentHandler.Images["Player_1"].Width / (double)2), (int)(ContentHandler.Images["Player_1"].Height / (double)2)),
                      SpriteEffects.None,
                      1f);
     Gun.Draw(spriteBatch);
 }
示例#2
0
 private void RefreshGunInfo()
 {
     _gun.Draw();
     ShowBulletsInfo();
 }