public void Draw(SpriteBatch pSpriteBatch, Camera pCamera) { mBlock.Position = Position; //mBlock.Draw(-pCamera.Position); if (EngineSettings.IsDebug) pSpriteBatch.Draw(TextureManager.Instance.GetElementByString("pixel"), CollisionBox, mDebugColor); }
public void Draw(SpriteBatch spriteBatch, Camera pCamera) { foreach (Block pBlock in mBlocks) { pBlock.Draw(spriteBatch, pCamera); } }
public void Draw(SpriteBatch pSpriteBatch, Camera pCamera, Vector2 pOffset) { Vector2 TmpPosition = Position; Position -= pCamera.Position - pOffset; mSkeletonRenderer.Begin(); mSkeletonRenderer.Draw(mSkeleton); mSkeletonRenderer.End(); Position = TmpPosition; if (EngineSettings.IsDebug) pSpriteBatch.Draw(TextureManager.Instance.GetElementByString("pixel"), new Rectangle(PositionX + (int)pOffset.X, PositionY + (int)pOffset.Y, 10, 10), mDebugColor); }
public void Draw(SpriteBatch pSpriteBatch, Camera pCamera) { Draw(pSpriteBatch, pCamera, Vector2.Zero); }