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.
 
 
miniworldmaker_cookbook/snippets/2 Movement/214_tiled_board_45degrees.py

18 lines
269 B

from miniworldmaker import *
board = TiledBoard()
t = Token()
t.position = (3, 3)
x = 0
@board.register
def act(self):
global x
x = x + 1
if x == 1:
t.direction = 135
t.move()
if x == 2:
t.move_in_direction(45)
board.run()