Exemplo n.º 1
0
 def drawInterface(self):
     graphics.blit_text(self.screen, interfaceTopleft, "N enemies")
     nEnemies = self.entityCount(enemyType)
     graphics.blit_text(self.screen, (320, 20), ("%d" % (nEnemies, )))
Exemplo n.º 2
0
 def display(self):
     for i in range(len(self.options)):
         if i == self.selection:
             graphics.blit_text(SCREEN, (20, 20 + i * 30), self.options[i])
         else:
             graphics.blit_text(SCREEN, (20, 20 + i * 30), self.options[i], (127, 127, 127))