示例#1
0
 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);
 }
示例#2
0
 public void Draw(SpriteBatch spriteBatch, Camera pCamera)
 {
     foreach (Block pBlock in mBlocks)
     {
         pBlock.Draw(spriteBatch, pCamera);
     }
 }
示例#3
0
 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);
 }
示例#4
0
 public void Draw(SpriteBatch pSpriteBatch, Camera pCamera)
 {
     Draw(pSpriteBatch, pCamera, Vector2.Zero);
 }