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/215_tiled_board_move_to_pos...

15 lines
261 B

from miniworldmaker import *
board = TiledBoard()
board.columns = 8
board.rows = 8
board.speed = 30
player = Token()
player.add_costume("images/player_1.png")
player.position = (4, 4)
@player.register
def act(self):
self.move_towards((7, 7))
board.run()