def draw(self, screen, game, numTicks = 0): Floor.draw(self, screen, game, numTicks) if not self.used: #Draw the pickup image on top of tile image rect = self.getRectScreen(game) screen.blit(self.glowImage, Rect(rect.topleft, (32,32))) screen.blit(self.groundImage, rect)
def create_matrix_for_map(self, x, y): if self.tile_map[y][x] == 0: self.map.append(Floor(x, y)) else: self.map.append(Wall(x, y))
def __init__(self, location, tileTextures, groundImage): Floor.__init__(self, location, tileTextures) self.groundImage = groundImage self.glowImage = image.load(os.path.join(GRAPHICPATH, "pickup_glow.png")) self.used = False