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.

30 lines
777 B

import miniworldmaker
class Board1(miniworldmaker.PixelBoard):
def on_setup(self):
print("board 1 was created")
token = miniworldmaker.Token((10,10))
def act(self):
if self.frame == 20:
print("board 1 is running", self.frame)
board2 = Board2((400, 600))
class Board2(miniworldmaker.PixelBoard):
def on_setup(self):
token = miniworldmaker.Token((40,40))
print("board 2 was created")
def act(self):
if self.frame == 1:
print("board 2 is running")
board = Board1(400,600)