https://github.com/getkey/mario-kombat
An online fighting game
https://github.com/getkey/mario-kombat
Last synced: 8 months ago
JSON representation
An online fighting game
- Host: GitHub
- URL: https://github.com/getkey/mario-kombat
- Owner: getkey
- License: mpl-2.0
- Created: 2015-05-03T18:15:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-17T16:57:27.000Z (about 11 years ago)
- Last Synced: 2024-12-29T03:18:23.525Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# Mario Kombat : Le retour de Luigi
## Dependancies
* [protobuf3](http://pythonhosted.org/protobuf3/)
* [Protocol Buffers compiler](https://developers.google.com/protocol-buffers/docs/downloads)
* [bitstring](http://scott-griffiths.github.io/bitstring/)
## Get started
### Generate the protocol
This step is unneeded as I already did it for you. Am I not the nicest?
```bash
$ protoc --python3_out=protocol/ protocol/server_to_client.proto
$ protoc --python3_out=protocol/ protocol/client_to_server.proto
```
### Work around a bug in protobuf3
TODO: Fix upstream
TODO: clean server/deserialize.py once bug is fixed
In `protobuf3/fields/message.py` edit:
```python
def _validate(self, value):
return False # Direct assignment is forbidden
```
to:
```python
def _validate(self, value):
return True # Direct assignment is forbidden
```
## Launch it
### Server
```bash
python3 -m server
```
### Client
```bash
```
## TODO:
Switch to Protocol Buffers 3 when it's released to get official support for Python 3.