Пример #1
0
 def render(self, canvas):
     GameObject.render(self,canvas)
     self.renderer.render(canvas, self.x , self.y)
     if self.die:
         self.deactivate()
Пример #2
0
 def render(self, canvas):
     GameObject.render(self,canvas)
Пример #3
0
 def render(self, canvas):
     GameObject.render(self, canvas)
     pygame.draw.rect(canvas, (173, 1, 1),
                      pygame.Rect(200, 10, self.hp, 10))