bludiste/main.py
2023-11-22 21:03:55 +01:00

23 lines
471 B
Python

from game import *
def main():
world = World(
[[1,1,1,1,1,1],
[1,0,0,1,0,1],
[1,0,0,1,0,1],
[1,0,0,0,0,1],
[1,1,1,1,1,1]],
[' ','#'])
hero = GameObject(Vector2(1,1),"@")
home = GameObject(Vector2(4,1),"^")
destination = Game(world,hero,home).run()
if destination:
print("Vitej doma!")
else:
print("... a uz ho nikdy nikdo nevidel... ")
if __name__ == "__main__":
main()