game: moved to channel 87
This commit is contained in:
parent
9b4eaa0606
commit
e2b7287256
|
@ -39,7 +39,7 @@ def receivedPacket(packet):
|
|||
pos=1
|
||||
|
||||
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)
|
||||
|
||||
class Application(tornado.web.Application):
|
||||
|
|
|
@ -29,7 +29,7 @@ class Pong:
|
|||
pygame.init()
|
||||
|
||||
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.player_right = Rem0tePlayer(self.rem0te)
|
||||
|
|
|
@ -7,7 +7,7 @@ import Queue
|
|||
def receivedPacket(packet):
|
||||
pass
|
||||
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()
|
||||
game.bridge.registerQueue(queue)
|
||||
game.bridge.registerCallback(receivedPacket)
|
||||
|
|
Loading…
Reference in New Issue