示例#1
0
 public void Draw(SpriteBatch spriteBatch, float paralax)
 {
     spriteBatch.DrawString(FontFactory.LoadFont(this.game, "Fonts/arial"),
                            this.Text(),
                            new Vector2(this.Position.X - (this.game.CurrentLevel.Camera.X * this.Paralax), this.Position.Y),
                            this.Color);
 }