def animate(i): global id id = raf(animate) jogador_agente() document['tabelajogo'] <= gerarCampoVisao(jogo.tabuleiro)
def update(self,i): raf(self.update) self.moveAlong()
def update(self, i): raf(self.update) self.moveAlong()
def _loop(i): # necessary for request_animation_frame global raf_id raf_id = raf(_loop) if screen.watchdog: _abort() screen.loop()
def animate(i): global id id = raf(animate) draw()
def walk_repeat(self, ev=None): global id id = raf(self.walk_repeat) self.walk_an_interval()