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.
 
 

23 lines
436 B

from miniworldmaker import *
board = Board()
status_bar = Rectangle((10, 10), 100, 20)
status_bar.color = (0, 255, 0)
status_bar.border_color = (255, 255, 255)
status_bar.layer = 2
status_border = Rectangle((10,10), 100, 20)
status_border.color = (0, 0, 0)
status_border.border_color = (255, 255, 255)
status_border.layer = 1
@loop(frames=20)
def shrink():
if status_bar.width > 0:
status_bar.width -= 10
board.run()