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.
 
 

58 lines
969 B

from miniworldmaker import *
board = TiledBoard(10,4)
def create_token(x, y):
t = Token()
t.position = (x, y)
t.add_costume("images/alien1.png")
t.border = 1
return t
t0 = create_token(0,0)
print(t0.size)
print(t0.costume.is_upscaled)
print(t0.costume.is_scaled)
print(t0.costume.is_scaled_to_width)
print(t0.costume.is_scaled_to_height)
t0b = create_token(1,0)
t = create_token(2,0)
t.costume.is_scaled = True
t = create_token(3,0)
t.costume.is_scaled_to_width = True
t = create_token(4,0)
t.costume.is_scaled_to_height = True
t = create_token(5,0)
t.costume.is_textured = True
t = create_token(6,0)
t.costume.is_textured = True
t.costume.texture_size = (10,10)
t = create_token(7,0)
t.flip_x()
t = create_token(8,0)
t.is_rotatable = False
t.flip_x()
# ----------------- row 2
t = create_token(0,1)
t = create_token(1,1)
t.orientation = -90
t = create_token(2,1)
t.orientation = -180
t = create_token(3,1)
t.orientation = -270
board.run()