Final game uploaded

I've just uploaded the final game! Yay!

To play it, you need Python 3 (tested with 3.6 and 3.7), Pygame Zero and Numpy. If you've installed the dependencies, just unzip the source and run "python3 run.py" (see the README more more details).

Your goal is to help the animals to cross the river and reach the area with the large green tree.
To do so, build a bridge of logs, starting at the bare tree near the animals.

But you cannot place logs on land, only inside the water. Use the flow of the river to pull the bridge on land on the other side, so that the animals can cross the river.
Try to minimize the number of logs used!

Controls:

  - Left mouse button: place new log, connected with the
                       highlighted points
  - Left/right key or mouse wheel: rotate log


Right now it contains just two levels (based on the same map). I would love to add more levels, but I haven't enough time for the final release.

I hope you enjoy it.

(log in to comment)

Comments

Your game is too difficult to me :(
D:\pyweek26\crossing-the-river>D:\Python36\python.exe run.py
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "D:\Python36\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "D:\Python36\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "D:\pyweek26\crossing-the-river\pw26flow\__main__.py", line 180, in <module>
    pgzrun.go()
  File "D:\Python36\lib\site-packages\pgzrun.py", line 31, in go
    run_mod(mod)
  File "D:\Python36\lib\site-packages\pgzero\runner.py", line 113, in run_mod
    PGZeroGame(mod).run()
  File "D:\Python36\lib\site-packages\pgzero\game.py", line 217, in run
    self.mainloop()
  File "D:\Python36\lib\site-packages\pgzero\game.py", line 247, in mainloop
    self.dispatch_event(event)
  File "D:\Python36\lib\site-packages\pgzero\game.py", line 172, in dispatch_event
    handler(event)
  File "D:\Python36\lib\site-packages\pgzero\game.py", line 164, in new_handler
    return handler(**prepped)
  File "D:\pyweek26\crossing-the-river\pw26flow\__main__.py", line 48, in on_mouse_down
    game.connect_nodes(start, end, stiffness=10)
  File "D:\pyweek26\crossing-the-river\pw26flow\game.py", line 79, in connect_nodes
    self.edges[edge_id] = (from_node, to_node)
IndexError: index 100 is out of bounds for axis 0 with size 100

Nice game title.

But I'm afraid we may cause a little confusion. Pyweek already has one "Crossing the river" game. You still have an opportunity to rename it.

@yarolig Thanks for the hint, I've updated the title of my entry.

Yeah, I forgot to check for the maximum number of logs, that's causing the error (never tried that many logs! ;-) ). Generally, all levels can be finished with around 10-20 logs.

Hint: If you still having trouble, stable triangular structures near the coast and some patience might be a good tactic :-)