public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch Sb, Graphics.PrimitiveRenderer Pr) { Sb.Begin(); StringBuilder str = new StringBuilder(); str.AppendLine("Accent"); str.AppendLine("Press 'space' to start!"); Sb.DrawString(sysFont, str, titlePos, Color.White); Sb.End(); }
public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch Sb, Graphics.PrimitiveRenderer Pr) { StringBuilder str = new StringBuilder(); if (Left.Damage == Right.Damage) { str.AppendLine("Draw!"); } else { str.Append("Winrar: "); if (Left.Damage < Right.Damage) { str.AppendLine("Player 1!"); } else { str.AppendLine("Player 2!"); } } str.AppendLine("Press Enter to return to track select..."); Sb.Begin(); Sb.DrawString(sysFont, str, resultsTextPosition, Color.White); str.Clear(); str.AppendLine("Player 1\n"); str.AppendFormat("Result score: {0}\n", Left.Score); str.AppendFormat("Final health: {0}\n", Left.Health); str.AppendFormat("Damage dealt: {0}\n", Left.Damage); Sb.DrawString(sysFont, str, LeftResultPosition, Color.White); str.Clear(); str.AppendLine("Player 2\n"); str.AppendFormat("Result score: {0}\n", Right.Score); str.AppendFormat("Final health: {0}\n", Right.Health); str.AppendFormat("Damage dealt: {0}\n", Right.Damage); Sb.DrawString(sysFont, str, RightResultPosition, Color.White); Sb.End(); }