From 48e48d4ae40bafb99d3a493a1fd64eb9e6b335f3 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 20 Apr 2020 22:06:02 -0500 Subject: [PATCH] use Arial font for draw_text functions --- triple-dungeon/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/triple-dungeon/main.py b/triple-dungeon/main.py index 55cab56..c2cefd8 100644 --- a/triple-dungeon/main.py +++ b/triple-dungeon/main.py @@ -74,7 +74,7 @@ class Game(arcade.Window): self.bullet_list = arcade.SpriteList() # Create the dungeon - self.dungeon = Dungeon(0, 5) + self.dungeon = Dungeon(0, 12) # Set up the player, specifically placing it at these coordinates. self.player = Player() @@ -112,9 +112,9 @@ class Game(arcade.Window): self.player.draw_hit_box() x, y = self.player.center_x, self.player.center_y - arcade.draw_text(str((x, y)), x - 40, y + 50, arcade.color.WHITE, 15) + arcade.draw_text(str((x, y)), x - 40, y + 50, arcade.color.WHITE, 15, font_name='Arial') arcade.draw_text(f"FPS: {self.fps.get_fps():3.0f}", self.view_left + 50, self.view_bottom + 30, - arcade.color.WHITE, 16) + arcade.color.WHITE, 16, font_name='Arial') self.fps.tick() except Exception: import traceback