game: moved to channel 87

This commit is contained in:
schneider 2011-12-23 20:52:29 +01:00
parent 9b4eaa0606
commit e2b7287256
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ def receivedPacket(packet):
pos=1 pos=1
game = r0ketrem0te.game.Game('COM4', "testgame", 83, game = r0ketrem0te.game.Game('COM4', "testgame", 83,
81, [ord(x) for x in 'REM0T'], 2, True) 87, [ord(x) for x in 'REM0T'], 2, True)
game.bridge.registerCallback(receivedPacket) game.bridge.registerCallback(receivedPacket)
class Application(tornado.web.Application): class Application(tornado.web.Application):

View File

@ -29,7 +29,7 @@ class Pong:
pygame.init() pygame.init()
self.rem0te = r0ketrem0te.game.Game('/dev/ttyACM0', "pong", 83, self.rem0te = r0ketrem0te.game.Game('/dev/ttyACM0', "pong", 83,
81, [ord(x) for x in 'REM0T'], 2, True) 87, [ord(x) for x in 'REM0T'], 2, True)
self.rem0te.registerPlayerCallback(self.playercallback) self.rem0te.registerPlayerCallback(self.playercallback)
self.player_right = Rem0tePlayer(self.rem0te) self.player_right = Rem0tePlayer(self.rem0te)

View File

@ -7,7 +7,7 @@ import Queue
def receivedPacket(packet): def receivedPacket(packet):
pass pass
game = r0ketrem0te.game.Game('/dev/ttyACM0', "testgame", 83, game = r0ketrem0te.game.Game('/dev/ttyACM0', "testgame", 83,
81, [ord(x) for x in 'REM0T'], 2, True) 87, [ord(x) for x in 'REM0T'], 2, True)
queue = Queue.Queue() queue = Queue.Queue()
game.bridge.registerQueue(queue) game.bridge.registerQueue(queue)
game.bridge.registerCallback(receivedPacket) game.bridge.registerCallback(receivedPacket)