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