miniworldmaker_cookbook/snippets/2 Movement/231_leaving_screen_tiled.py

8 lines
117 B
Python
Executable File

from miniworldmaker import *
b = TiledBoard(10,10)
t = Token(5,5)
@t.register
def act(self):
self.x += 1
b.run()