Ejemplo n.º 1
0
 def __init__(self):
     self.layout = Layout([
         Field(level, 'field', {
             'normal': State.parse(
             'normal:(0,0)-(1,1)'),
             }),
         ])
     super().__init__()
     Frame.start(self, True)
     Keys.start(self.stage)
     self.layout.mapping.field.start()
Ejemplo n.º 2
0
 def start(self):
     Keys.register(Keys.LEFT, 'pacman_left')
     Keys.register(Keys.RIGHT, 'pacman_right')
     Keys.register(Keys.DOWN, 'pacman_down')
     Keys.register(Keys.UP, 'pacman_up')
     Frame.attach(self.frame)
Ejemplo n.º 3
0
 def start(self):
     Frame.attach(self.frame)
     Keys.register(Keys.LEFT, 'racket_left')
     Keys.register(Keys.RIGHT, 'racket_right')