The game should send status information via WebSockets to a Python client and shall receive the player's commands, i.e. (re)start game and click somewhere.
How to use:
pip3 install --user websockets asyncio aioconsole
python3 python/client.py
- in another terminal:
python3 -m http.server
- Open http://localhost:8000 in your web browser
You should see status information like cell location, and win/lose in the output of python3 python/client.py
.
http://stepheneisenhauer.com/demos/browsmos/
Browsmos is a game the web browser, made entirely using HTML5, and inspired heavily by the gameplay of Osmos.
The rules are simple; click to propel yourself around, and try to absorb smaller cells until you become the biggest. Watch out for larger cells, or they will absorb you!
Browsmos can also be installed as an app in Chromium or Google Chrome, requiring no internet connectivity to play. It can be installed via the Chrome Web Store here:
- Homepage: http://stepheneisenhauer.com/browsmos/
Any JavaScript sources within Browsmos are hereby licensed under the Simplified BSD License. You are free to modify and redistribute Browsmos, but, if you do, please:
- don't distribute modifications as though they are my own
- consider including an attribution, preferably linking to this page