Tests examples for the miniworldmaker engine https://www.miniworldmaker.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
miniworldmaker_cookbook/snippets/8 Events/807_simultanous typing.py

16 lines
347 B

import miniworldmaker
board = miniworldmaker.TiledBoard(4,4)
player1 = miniworldmaker.Token(position=(0, 2))
player2 = miniworldmaker.Token(position=(3, 2))
def on_key_down_a(self):
print("player 1", self.board.frame)
def on_key_down_b(self):
print("player 2", self.board.frame)