chore: change bmp font and test text gen
This commit is contained in:
@@ -23,12 +23,12 @@ class Game:
|
||||
|
||||
def initialize(self) -> None:
|
||||
pygame.init()
|
||||
TextGenerator.load("resource/font/retro-font.bmp", (20, 30))
|
||||
TextGenerator.load(ConfigurationManager.get("image", "font"), (20, 20))
|
||||
|
||||
win_width = ConfigurationManager.get("window", "width")
|
||||
win_height = ConfigurationManager.get("window", "height")
|
||||
win_icon = ConfigurationManager.get("window", "icon")
|
||||
win_title = ConfigurationManager.get("window", "title")
|
||||
win_icon = ConfigurationManager.get("image", "window-icon")
|
||||
|
||||
self.fps = ConfigurationManager.get("engine", "fps")
|
||||
self.tile_size = ConfigurationManager.get("engine", "tile-size")
|
||||
@@ -121,9 +121,15 @@ class Game:
|
||||
self.stack.draw(self.screen)
|
||||
if self.current_piece:
|
||||
self.current_piece.draw(self.screen)
|
||||
|
||||
TextGenerator.draw("SCORE", (0, 0), self.screen)
|
||||
|
||||
TextGenerator.draw("Top", (80, 120), self.screen)
|
||||
TextGenerator.draw("000000", (80, 140), self.screen)
|
||||
|
||||
TextGenerator.draw("Score", (80, 180), self.screen)
|
||||
TextGenerator.draw("000000", (80, 200), self.screen)
|
||||
|
||||
TextGenerator.draw("Lines 0000", (300, 40), self.screen)
|
||||
|
||||
# update display
|
||||
pygame.display.update()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user