public override void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(spritesheetManager.currentTexture, new Rectangle(rigidBody.collisionRectangle.X - ((drawDimensions[0] - rigidBody.collisionRectangle.Width) / 2), rigidBody.collisionRectangle.Y - ((drawDimensions[1] - rigidBody.collisionRectangle.Height) / 2), drawDimensions[0], drawDimensions[1]), null, LightingManager.entityLightingColor(rigidBody.collisionRectangle), 0, Vector2.Zero, spritesheetManager.currentEffect, 0); }
public void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(otherPlayerSpritesheet[spritesheetLocation[0], spritesheetLocation[1]], drawRectangle, null, LightingManager.entityLightingColor(collisionRectangle), 0, Vector2.Zero, currentEffect, 0); spriteBatch.DrawString(GUI.GUIFont, username, new Vector2(drawRectangle.Center.X - (GUI.GUIFont.MeasureString(username).X / 2), drawRectangle.Y - GUI.GUIFont.MeasureString(username).Y), Color.White); }
public override void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(spritesheetManager.currentTexture, drawRectangle, null, LightingManager.entityLightingColor(new Rectangle((int)(rigidBody.collisionRectangle.X - Game1.mainPlayer.relativeOffset.X), (int)(rigidBody.collisionRectangle.Y - Game1.mainPlayer.relativeOffset.Y), rigidBody.collisionRectangle.Width, rigidBody.collisionRectangle.Height)), 0, Vector2.Zero, spritesheetManager.currentEffect, 0); //DEBUG COLLISION //spriteBatch.Draw(TileType.grassTile.texture, rigidBody.collisionRectangle, Color.White); }
public override void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(itemsInDrop[0].itemType.itemTexture, rigidBody.collisionRectangle, LightingManager.entityLightingColor(rigidBody.collisionRectangle)); }
public override void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(texture, rigidBody.collisionRectangle, sourceRectangle, LightingManager.entityLightingColor(rigidBody.collisionRectangle)); }
public virtual void draw(SpriteBatch spriteBatch) { spriteBatch.Draw(texture, rigidBody.collisionRectangle, LightingManager.entityLightingColor(rigidBody.collisionRectangle)); }