mirror of
https://github.com/n0remac/game-jam-2020.git
synced 2025-12-16 18:10:02 -06:00
fix debug messages not under a DEBUG mode check
This commit is contained in:
@@ -74,7 +74,7 @@ class Game(arcade.Window):
|
|||||||
self.bullet_list = arcade.SpriteList()
|
self.bullet_list = arcade.SpriteList()
|
||||||
|
|
||||||
# Create the dungeon
|
# Create the dungeon
|
||||||
self.dungeon = Dungeon(0, 8)
|
self.dungeon = Dungeon(0, 3)
|
||||||
|
|
||||||
# Set up the player, specifically placing it at these coordinates.
|
# Set up the player, specifically placing it at these coordinates.
|
||||||
self.player = Player()
|
self.player = Player()
|
||||||
@@ -110,12 +110,13 @@ class Game(arcade.Window):
|
|||||||
self.enemy_list.draw()
|
self.enemy_list.draw()
|
||||||
self.bullet_list.draw()
|
self.bullet_list.draw()
|
||||||
|
|
||||||
self.player.draw_hit_box()
|
if Config.DEBUG:
|
||||||
x, y = self.player.center_x, self.player.center_y
|
self.player.draw_hit_box()
|
||||||
arcade.draw_text(str((x, y)), x - 40, y + 50, arcade.color.WHITE, 15, font_name='Arial')
|
x, y = self.player.center_x, self.player.center_y
|
||||||
arcade.draw_text(f"FPS: {self.fps.get_fps():3.0f}", self.view_left + 50, self.view_bottom + 30,
|
arcade.draw_text(str((x, y)), x - 40, y + 50, arcade.color.WHITE, 15, font_name='Arial')
|
||||||
arcade.color.WHITE, 16, font_name='Arial')
|
arcade.draw_text(f"FPS: {self.fps.get_fps():3.0f}", self.view_left + 50, self.view_bottom + 30,
|
||||||
self.fps.tick()
|
arcade.color.WHITE, 16, font_name='Arial')
|
||||||
|
self.fps.tick()
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|||||||
Reference in New Issue
Block a user