Example #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]
Example #2
0
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Age]
Example #3
0
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Clonable]
Example #4
0
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Age]
Example #5
0
 def __init__(self):
     EntityProcessor.__init__(self)
     self.needed = [Clonable]
Example #6
0
 def __init__(self, screen):
     EntityProcessor.__init__(self)
     self.screen = screen
     self.needed = [Coordinate, Look]
Example #7
0
 def __init__(self, screen_size):
     EntityProcessor.__init__(self)
     self.screen_width, self.screen_height = screen_size
     self.needed = [Position, Coordinate]