Beispiel #1
0
    def draw(self, game):

        game.screen.blit(Globals.FONT.render(self.text, True, self.color), ind2cord(self.x, self.y))
Beispiel #2
0
 def make_patch(self, game):
     patch = pygame.Surface((len(self.text) * Globals.FONT_X, Globals.FONT_Y))
     patch.fill(Globals.BG_COLOR)
     game.screen.blit(patch, ind2cord(self.x, self.y))
Beispiel #3
0
 def draw(self, game, x, y):
     game.screen.blit(Graphics.textures[self.type], ind2cord(x, y))