def draw(self, game): game.screen.blit(Globals.FONT.render(self.text, True, self.color), ind2cord(self.x, self.y))
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))
def draw(self, game, x, y): game.screen.blit(Graphics.textures[self.type], ind2cord(x, y))