示例#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]