crashtest-r0ket/tools/game/testgame.py

17 lines
403 B
Python
Raw Permalink Normal View History

2011-12-15 18:56:00 +00:00
import r0ketrem0te.game
import r0ketrem0te.bridge
import r0ketrem0te.packets
import time
import Queue
def receivedPacket(packet):
pass
2011-12-16 02:04:31 +00:00
game = r0ketrem0te.game.Game('/dev/ttyACM0', "testgame", 83,
2011-12-23 19:52:29 +00:00
87, [ord(x) for x in 'REM0T'], 2, True)
2011-12-15 18:56:00 +00:00
queue = Queue.Queue()
game.bridge.registerQueue(queue)
game.bridge.registerCallback(receivedPacket)
while True:
time.sleep(1)