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.
 
 

12 lines
290 B

from miniworldmaker import *
board = HexBoard(24, 2)
board.tile_size = 40
for x in range(board.columns):
for y in range(board.rows):
t = Token((x,y))
color = (x + y) / (board.columns + board.rows) * 255
t.fill_color = (color, color, color)
board.run()