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.
 
 

17 lines
402 B

from miniworldmaker import *
board = Board()
token = Token()
token.add_costume("images/alien1.png")
token.height= 400
token.width = 100
token.is_rotatable = False
@token.register
def act(self):
if self.board.frame % 100 == 0:
print("flip")
if self.costume.is_flipped:
self.costume.is_flipped = False
else:
self.costume.is_flipped = True
board.run()