예제 #1
0
 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,
         ),
     )
예제 #2
0
 def render(self, surface, worldCoords):
     if self.vehicle is not None:
         return
     
     GameEntity.render(self, surface, worldCoords)
예제 #3
0
 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))