コード例 #1
0
 public void Draw(SpriteBatch spriteBatch, Vector2 camera)
 {
     DrawHelper.DrawLine(spriteBatch, pointL - camera, pointR - camera, Color.Yellow);
 }
コード例 #2
0
 public virtual void Draw(SpriteBatch spriteBatch)
 {
     spriteBatch.Draw(texture, DrawHelper.BuildRectangle(position - room.camera, size), Color.White);
     this.prevPosition = this.position;
 }
コード例 #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);
 }