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.
 
 

33 lines
868 B

from miniworldmaker import *
class Board1(PixelBoard):
def on_setup(self):
self.add_background((0,255,0,255))
print("board 1 was created")
token = Token((10,10))
self.console = Console()
self.add_container(self.console, "bottom", size = 200)
def act(self):
if self.frame == 20:
print("board 1 is running", self.frame)
board2 = Board2((400, 600))
self.remove_container(self.console)
self.switch_board(board2)
class Board2(PixelBoard):
def on_setup(self):
self.add_background((0,0,100,255))
token = Token((40,40))
print("board 2 was created")
def act(self):
if self.frame == 1:
print("board 2 is running")
board = Board1(400,600)
board.run()