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