drsp

所属分类:IPFS
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2019-03-03 19:55:07
上 传 者sh-1993
说明:  基于IPFS和delta crdts.构建的实时大规模多玩家去中心化持久虚拟世界。,
(A real-time massive multiplayer decentralized persistent virtual world built on IPFS and delta-crdts.,)

文件列表:
package-lock.json (306328, 2019-03-03)
package.json (542, 2019-03-03)
public/ (0, 2019-03-03)
public/about/ (0, 2019-03-03)
public/about/about.css (506, 2019-03-03)
public/about/index.html (1661, 2019-03-03)
public/css/ (0, 2019-03-03)
public/css/app.css (2894, 2019-03-03)
public/favicon.ico (4286, 2019-03-03)
public/fonts/ (0, 2019-03-03)
public/fonts/Typo_Round_Bold_Demo.otf (65816, 2019-03-03)
public/index.html (1375, 2019-03-03)
public/js/ (0, 2019-03-03)
public/js/app.js.tmp-browserify-24632109692209791518 (0, 2019-03-03)
rendezvous/ (0, 2019-03-03)
rendezvous/nginx.conf (1361, 2019-03-03)
src/ (0, 2019-03-03)
src/app.js (13171, 2019-03-03)
src/colors.js (109, 2019-03-03)
src/names.js (390, 2019-03-03)

# [DRSP](http://npfoss.com/drsp) DRSP, which stands for decentralized [r/place](https://www.reddit.com/r/place/top/?t=all) (our inspiration), is a real-time massive multiplayer decentralized persistent virtual world. There is no central server behind this game. You dynamically load small chunks of a gigantic map as you move around, and sync updates about the world state only with the othe people in those chunks. It's built with [IPFS](https://ipfs.io/) [pubsub room](https://github.com/ipfs-shipyard/ipfs-pubsub-room) and [delta-crdts](https://github.com/ipfs-shipyard/js-delta-crdts). CRDTs are Confilct-free Replicated Data Types, and are the reason everyone on DRSP ends up with the same world-state no matter what order updates are recieved in. ## installation `npm install` ## run ```bash npm run compile npm run start ``` ## peering servers Unfortunately this does rely on peering servers to make the initial contact between two users. Here's an example setup of such a server: First, get nginx and docker (you can do it without docker too). You will also need https certs since Chrome won't let you use http websocket on https pages. To start the actual peering server run `sudo docker run -d -p 9090:9090 --name rendezvous libp2p/websocket-star-rendezvous:release`. To make it possible to use with https (a must), run nginx with an `nginx.conf` file like the one in [rendezvous](https://github.com/npfoss/drsp/tree/master/rendezvous). These commands may be useful: ```bash sudo systemctl start nginx sudo systemctl status nginx sudo systemctl stop nginx ``` You should now be able to add a peering server to the list that looks something like `'/dns4/npfoss.mit.edu/tcp/13579/wss/p2p-websocket-star/'`!

近期下载者

相关文件


收藏者