コード例 #1
0
 public static void DrawScore(SpriteBatch spriteBatch, ICamera camera)
 {
     string scoreString = currentScoreToDraw.ToString();
     location.Y -= upwardDrawYModifier;
     if (hasChanged && !(HUDManager.CurrentGameState() == HUDConstants.PACMARIOHUDSTRING) && !(HUDManager.CurrentGameState() == HUDConstants.BRICKBREAKERHUDSTRING))
     {
         spriteBatch.Begin(SpriteSortMode.Deferred, null, null, null, null, null, ScreenScaler.ScalingMatrix);
         spriteBatch.DrawString(scoreFont, scoreString, camera.GetAdjustedPosition(location), Color.White);
         spriteBatch.End();
     }
 }
コード例 #2
0
 public void Draw(ICamera camera)
 {
     elevatorSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #3
0
 public void Draw(ICamera camera)
 {
     ((IMarioSprite)mario.Sprite).StarDraw(myGame.spriteBatch, camera.GetAdjustedPosition(mario.VectorCoordinates));
 }
コード例 #4
0
 public void Draw(ICamera camera)
 {
     if (!isInsideBlock)
         flowerSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #5
0
 public void Draw(ICamera camera)
 {
     tripleCloudSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #6
0
 public void Draw(ICamera camera)
 {
     sprite.Draw(game.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #7
0
 public void Draw(ICamera camera)
 {
     if (!isInsideBlock || (isReleased && physics.Velocity.Y < ItemConstants.COINYVELOCITYCAP))
         coinSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #8
0
 public void Draw(ICamera camera)
 {
     singleBushSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #9
0
 public void Draw(ICamera camera)
 {
     tripleBushSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #10
0
 public void Draw(ICamera camera)
 {
     Vector2 location = mario.VectorCoordinates;
     sprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #11
0
 public void Draw(ICamera camera)
 {
     bigHillSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #12
0
 public void Draw(ICamera camera)
 {
     singleCloudSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #13
0
 public void Draw(ICamera camera)
 {    
     sprite.Draw(game.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #14
0
 public void Draw(ICamera camera)
 {
     invisibleFlagPoleSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }
コード例 #15
0
 public void Draw(ICamera camera)
 {
     paddleBallSprite.Draw(myGame.spriteBatch, camera.GetAdjustedPosition(location));
 }