fix debug messages not under a DEBUG mode check

This commit is contained in:
Xevion
2020-04-21 00:11:38 -05:00
parent 5744076dad
commit fa50a28411

View File

@@ -74,7 +74,7 @@ class Game(arcade.Window):
self.bullet_list = arcade.SpriteList()
# Create the dungeon
self.dungeon = Dungeon(0, 8)
self.dungeon = Dungeon(0, 3)
# Set up the player, specifically placing it at these coordinates.
self.player = Player()
@@ -110,6 +110,7 @@ class Game(arcade.Window):
self.enemy_list.draw()
self.bullet_list.draw()
if Config.DEBUG:
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, font_name='Arial')