public override void Draw() { rayCaster.Render(); Player.Draw(); ScreenBuffer.InsertSprite(hudBar); ScreenBuffer.InsertSprite(CurrentWeapon); ScreenBuffer.InsertSprite(CurrentFace); Font.TextList = new List <Text>(); Font.AddText(new Text("Floor", "floor", new Vector2(15, 422.5f), 0.55f, true)); Font.AddText(new Text(RayCaster.Floor.ToString(), "floorval", new Vector2(35f, 450f), 0.65f, true)); Font.AddText(new Text("Score", "score", new Vector2(110, 422.5f), 0.55f, true)); Font.AddText(new Text("1337", "scoreval", new Vector2(120, 450f), 0.65f, true)); Font.AddText(new Text("Lives", "lives", new Vector2(200, 422.5f), 0.55f, true)); Font.AddText(new Text("1", "livesval", new Vector2(225, 450f), 0.65f, true)); Font.AddText(new Text("Health", "health", new Vector2(350f, 422.5f), 0.55f, true)); Font.AddText(new Text(Player.Health + "%", "healthval", new Vector2(355f, 450f), 0.65f, true)); Font.AddText(new Text("Ammo", "ammo", new Vector2(450f, 422.5f), 0.55f, true)); Font.AddText(new Text(Player.Ammo.ToString(), "ammoval", new Vector2(462.5f, 450f), 0.65f, true)); Font.Draw(); ScreenBuffer.Draw(); ScreenBuffer.Clear(); }
public override void Draw() { ScreenBuffer.InsertSprite(((GamePlayState)parent).hudBar); ScreenBuffer.InsertSprite(((GamePlayState)parent).CurrentWeapon); ScreenBuffer.InsertSprite(((GamePlayState)parent).CurrentFace); Font.AddText(new Text("Congratulations!", "yay1", new Vector2(50, 75), 1f)); Font.AddText(new Text("You made it", "yay2", new Vector2(50, 125), 1f)); Font.AddText(new Text("Total time: " + Math.Round(Program.TotalTime, 2) + " seconds.", "time", new Vector2(50, 175), 1f)); Font.AddText(new Text("Thank you for playing!", "yay3", new Vector2(50, 225), 1f)); Font.AddText(new Text("By: Metaldemon", "yay4", new Vector2(50, 275), 1f)); Font.AddText(new Text("Press Enter to return to menu.", "yay5", new Vector2(50, 350), 0.825f)); Font.Draw(); ScreenBuffer.Draw(); ScreenBuffer.Clear(); }
public override void Draw() { for (int x = 0; x < 640; x++) { for (int y = 0; y < 480 - 72; y++) { ScreenBuffer.screenBuffer[y * 640 + x] = ScreenBuffer.GetUintFromARGB(255, 120, 120, 120); } } ScreenBuffer.InsertSprite(((GamePlayState)parent).hudBar); ScreenBuffer.InsertSprite(((GamePlayState)parent).CurrentWeapon); ScreenBuffer.InsertSprite(((GamePlayState)parent).CurrentFace); Font.TextList = new List <Text>(); Font.AddText(new Text("Floor", "floor", new Vector2(15, 422.5f), 0.55f, true)); Font.AddText(new Text(RayCaster.Floor.ToString(), "floorval", new Vector2(35f, 450f), 0.65f, true)); Font.AddText(new Text("Score", "score", new Vector2(110, 422.5f), 0.55f, true)); Font.AddText(new Text("1337", "scoreval", new Vector2(120, 450f), 0.65f, true)); Font.AddText(new Text("Lives", "lives", new Vector2(200, 422.5f), 0.55f, true)); Font.AddText(new Text("1", "livesval", new Vector2(225, 450f), 0.65f, true)); Font.AddText(new Text("Health", "health", new Vector2(350f, 422.5f), 0.55f, true)); Font.AddText(new Text(Player.Health + "%", "healthval", new Vector2(355f, 450f), 0.65f, true)); Font.AddText(new Text("Ammo", "ammo", new Vector2(450f, 422.5f), 0.55f, true)); Font.AddText(new Text(Player.Ammo.ToString(), "ammoval", new Vector2(462.5f, 450f), 0.65f, true)); Font.AddText(new Text("Floor: " + RayCaster.Floor + " Completed!", "floorcomplete", new Vector2(50, 75), 1f)); Font.AddText(new Text("Time: " + Math.Round(RayCaster.CurrentTime, 2) + " seconds.", "time", new Vector2(50, 125), 1f)); Font.AddText(new Text("Kill Ratio: " + currentKillPercentage + "%", "killpercentage", new Vector2(50, 175), 1f)); Font.AddText(new Text("Press Enter!", "entertext", new Vector2(50, 225), 1f)); Font.Draw(); ScreenBuffer.Draw(); ScreenBuffer.Clear(); }
public static void Draw() { ScreenBuffer.InsertSprite(Weapon); }