Esempio n. 1
0
 public void Draw(SpriteBatch spriteBatch, Vector2 camera)
 {
     DrawHelper.DrawLine(spriteBatch, pointL - camera, pointR - camera, Color.Yellow);
 }
Esempio n. 2
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(texture, DrawHelper.BuildRectangle(position - room.camera, size), Color.White);
     this.prevPosition = this.position;
 }
Esempio n. 3
0
 public void Draw(SpriteBatch spriteBatch, Vector2 camera)
 {
     DrawHelper.DrawRectangleOutline(spriteBatch, position.X - camera.X, position.Y - camera.Y, size.X, size.Y, Color.Yellow);
 }