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.
 
 

26 lines
675 B

import miniworldmaker
class LevelDesignerBoard(miniworldmaker.TiledBoard):
def on_setup(self):
self.file = "data.db"
self.add_background((200,200,0,255))
self.toolbar = self.add_container(miniworldmaker.LevelDesignerToolbar(self,[MyToken, Wall], self.file), "right")
def on_board_loaded(self):
self.load_tokens_from_db(self.file, [MyToken, Wall])
class MyToken(miniworldmaker.Token):
def on_setup(self):
self.add_costume((255,255,255,255))
class Wall(miniworldmaker.Token):
def on_setup(self):
self.add_costume("images/wall.png")
board = LevelDesignerBoard(24, 12)
board.run()