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.
 
 

25 lines
465 B

from miniworldmaker import *
board = Board()
token = Token(0,20)
token2 = Token(800,20)
@board.register
def act(self):
token.x += 1
if token.x >= 200:
self.camera_x += 1
token2.x -= 1
@token.register
def on_sensing_token(self, other):
print("found you")
@token2.register
def on_sensing_not_on_board(self):
print("not on board", self.position)
@token2.register
def on_sensing_on_board(self):
print("on board")
board.run()