Exemple #1
0
 def __init__(self, screen_size):
     EntityProcessor.__init__(self)
     self.screen_width, self.screen_height = screen_size
     # Note this processor only need Position and Speed so we ask for
     # entities which contain these components. In this demo, there are only
     # balls so all the entities are returned each time.
     self.needed = [Position, Speed]
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Age]
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Clonable]
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Age]
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Clonable]
Exemple #6
0
 def __init__(self, screen):
     EntityProcessor.__init__(self)
     self.screen = screen
     self.needed = [Coordinate, Look]
Exemple #7
0
 def __init__(self, screen_size):
     EntityProcessor.__init__(self)
     self.screen_width, self.screen_height = screen_size
     self.needed = [Position, Coordinate]