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.
 
 

14 lines
335 B

from miniworldmaker import *
board = HexBoard(8, 8)
@board.register
def on_setup(self):
center = HexTile((4, 4))
for x in range(self.columns):
for y in range(self.rows):
if center.position.distance((x, y)) < 2:
tile = self.get_tile((x, y))
tile.create_token()
board.run()