PotatOnline
A small project to discover online multiplayer games.
Development Plan :
- One shall be project manager
- Split development in two : client and server
- Setup Docker to host online games
Main issues :
- Write our own protocol (App layer) ? Or simply use pinkle (object serialization) which can be easily used to hack computers ?
- More ?
Milestones :
- LAN 'mail' service using python ? (one way first and then both) DONE !
- Based on this service, use it to make an object move on the other computer's screen. DONE !
- Make a game playable in LAN. WIP !
- Make it playable online through the iscsc server.
GAME :
Python Module Dependencies
- pygame
- shapely
Launch
Server Launch
python3 ServerCube.py
or make server
Client
python3 client.py <IP_Server> <Port>
or make client SERVER=<IP_Server> PORT=<Port>
Formatted messages :
Client connexion :
- sends
CONNECT <Username> END
and receivesCONNECTED <Username> <Screen_Size> STATE <Players_List> END
as a connection confirmation and to setup the state of the game locally.
Client inputs :
- sends
INPUT <Username> <Input> END
and receivesSTATE <Players_List> END
to update the state of the game on the server, and then locally.<Input>
can beL
,R
,U
,D
for movements, and.
for none.
Client disconnexion :
- sends
DISCONNECT <Username> END
and receivesDISCONNECTED <Username> END
as a confirmation before quitting the game.