def render(self, surface, offset): GameEntity.render(self, surface, offset) surface.fill( (128, 128, 128), ( self.location.x - offset[0], self.location.y - offset[1] + self.image.get_height() + 5, self.nutritionValue / 5, 4, ), )
def render(self, surface, worldCoords): if self.vehicle is not None: return GameEntity.render(self, surface, worldCoords)
def render(self, surface, offset): GameEntity.render(self, surface, offset) surface.fill( (128, 128, 128), (self.location.x - offset[0], self.location.y - offset[1] + self.image.get_height() + 5, self.nutritionValue / 5, 4))