Individual game project for my topic COMP3752. It’s a two player fighting style game using WebSockets for communication. Tested using Firefox 38.0.5 and Chromium 43.0.2357.125. The WebSockets API is experimental, so if it doesn’t work in your browser you might have better luck with one of those. There’s a demo server running here. If there are no other players, try opening a second instance in a new tab or window.
You’re the red cat, the objective is to push the blue cat off the platform.
Movement keys are ←
and →
, attack keys are asdf
.
None. You just need to navigate to the page in Firefox or Chrom{e,ium}.
You need Python 3.
$ git clone https://github.com/eqyiel/websockets-fighter
$ cd websockets-fighter
$ pyvenv .
$ source bin/activate
$ pip install -r dependencies.txt
$ ./main.py
- Doesn’t work on mobile devices yet, but it might in the future. It should be just a matter of listening for touch events.
This project makes use of assets from:
- dogchicken, which can be found here (CC-BY 3.0).
- Jetrel, which can be found here (public domain).
- Mobius, which can be found here (public domain).
- Tehdog, which can be found here (public domain)
- qubodup, which can be found here (public domain)
- artisticdude, which can be found here (public domain)
This tutorial was also immensely helpful.