From 30ba66ab6c289093b408db363a8533a265e72e5c Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Thu, 12 Jan 2023 17:43:32 -0600 Subject: [PATCH] add fps to debug --- creeper_adventure/creeper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/creeper_adventure/creeper.py b/creeper_adventure/creeper.py index 7fba582..21aa72a 100755 --- a/creeper_adventure/creeper.py +++ b/creeper_adventure/creeper.py @@ -271,6 +271,14 @@ class DebugMenu(Menu): ), (10, 80), ) + self.surf.blit( + self.font.render( + f"fps: {round(self.game.clock.get_fps())}", + True, + (255, 255, 255), + ), + (10, 95), + ) class LightSource: