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.
 
 

25 lines
500 B

from miniworldmaker import *
board=TiledBoard(4, 1)
board.add_background("images/water.png")
class Fish(Token):
def on_setup(self):
self.add_costume("images/fish.png")
self.costume.orientation = - 90
self.direction = "right"
def act(self):
print("act", self.position, self.direction)
self.move()
def on_sensing_not_on_board(self):
#print("move back")
self.move_back()
self.flip_x()
fish = Fish()
board.run()