|
@@ -1048,17 +1048,16 @@ namespace RolePlaying
|
|
private void DrawSelectionSprites(GameTime gameTime)
|
|
private void DrawSelectionSprites(GameTime gameTime)
|
|
{
|
|
{
|
|
SpriteBatch spriteBatch = Session.ScreenManager.SpriteBatch;
|
|
SpriteBatch spriteBatch = Session.ScreenManager.SpriteBatch;
|
|
- Viewport viewport = Session.ScreenManager.GraphicsDevice.Viewport;
|
|
|
|
|
|
|
|
// draw the highlighted-player sprite, if any
|
|
// draw the highlighted-player sprite, if any
|
|
if (highlightedCombatant != null)
|
|
if (highlightedCombatant != null)
|
|
{
|
|
{
|
|
highlightBackgroundSprite.Draw(spriteBatch,
|
|
highlightBackgroundSprite.Draw(spriteBatch,
|
|
highlightedCombatant.Position,
|
|
highlightedCombatant.Position,
|
|
- 1f - (highlightedCombatant.Position.Y - 1) / viewport.Height);
|
|
|
|
|
|
+ 1f - (highlightedCombatant.Position.Y - 1) / Session.BACK_BUFFER_HEIGHT);
|
|
highlightForegroundSprite.Draw(spriteBatch,
|
|
highlightForegroundSprite.Draw(spriteBatch,
|
|
highlightedCombatant.Position,
|
|
highlightedCombatant.Position,
|
|
- 1f - (highlightedCombatant.Position.Y + 1) / viewport.Height);
|
|
|
|
|
|
+ 1f - (highlightedCombatant.Position.Y + 1) / Session.BACK_BUFFER_HEIGHT);
|
|
}
|
|
}
|
|
|
|
|
|
// update the animations
|
|
// update the animations
|
|
@@ -1073,7 +1072,7 @@ namespace RolePlaying
|
|
{
|
|
{
|
|
primaryTargetSprite.Draw(spriteBatch,
|
|
primaryTargetSprite.Draw(spriteBatch,
|
|
primaryTargetedCombatant.Position,
|
|
primaryTargetedCombatant.Position,
|
|
- 1f - (primaryTargetedCombatant.Position.Y - 1) / viewport.Height);
|
|
|
|
|
|
+ 1f - (primaryTargetedCombatant.Position.Y - 1) / Session.BACK_BUFFER_HEIGHT);
|
|
if (primaryTargetedCombatant.Character is Monster)
|
|
if (primaryTargetedCombatant.Character is Monster)
|
|
{
|
|
{
|
|
Fonts.DrawCenteredText(spriteBatch, Fonts.DamageFont,
|
|
Fonts.DrawCenteredText(spriteBatch, Fonts.DamageFont,
|
|
@@ -1098,7 +1097,7 @@ namespace RolePlaying
|
|
}
|
|
}
|
|
secondaryTargetSprite.Draw(spriteBatch,
|
|
secondaryTargetSprite.Draw(spriteBatch,
|
|
combatant.Position,
|
|
combatant.Position,
|
|
- 1f - (combatant.Position.Y - 1) / viewport.Height);
|
|
|
|
|
|
+ 1f - (combatant.Position.Y - 1) / Session.BACK_BUFFER_HEIGHT);
|
|
if (combatant.Character is Monster)
|
|
if (combatant.Character is Monster)
|
|
{
|
|
{
|
|
Fonts.DrawCenteredText(spriteBatch, Fonts.DamageFont,
|
|
Fonts.DrawCenteredText(spriteBatch, Fonts.DamageFont,
|