项目作者: mgoulao

项目描述 :
A multiplayer P2P space arcade game where you fire against the enemies by typing words.
高级语言: JavaScript
项目地址: git://github.com/mgoulao/TypeSpaceArcade.git
创建时间: 2020-02-14T12:08:15Z
项目社区:https://github.com/mgoulao/TypeSpaceArcade

开源协议:

下载


TypeSpaceArcade

A multiplayer P2P space arcade game where you fire against the enemies by typing words.

Communication Protocol

The communication between peers is very basic and unreliable. Basically, peers are connected in a mesh net and in game when a peer performs an action he sends a message to the other peers saying that he just performed that same action. This means that every single peer has a different game state and major communication delays can be catastrophic. Example: Some peer dodges a rock by moving left and the some of the other peers only received the message, saying that he moved left, after the sender ship collide against the rock.

I would like to change this communication protocol but don’t have time and I need refactor the project first, especially the p2p.js.

Built With

Contributions

Every contribution is welcome 🙂