@colyseus/fossil-delta-serializer
Advanced tools
Comparing version 0.15.0 to 0.16.0-preview.0
@@ -34,6 +34,5 @@ var __create = Object.create; | ||
class FossilDeltaSerializer { | ||
id = "fossil-delta"; | ||
previousState; | ||
previousStateEncoded; | ||
patches; | ||
constructor() { | ||
this.id = "fossil-delta"; | ||
} | ||
reset(newState) { | ||
@@ -40,0 +39,0 @@ this.previousState = newState; |
{ | ||
"name": "@colyseus/fossil-delta-serializer", | ||
"version": "0.15.0", | ||
"version": "0.16.0-preview.0", | ||
"input": "./src/index.ts", | ||
@@ -9,6 +9,6 @@ "main": "./build/index.js", | ||
"dependencies": { | ||
"@colyseus/core": "^0.15.0", | ||
"fast-json-patch": "^2.0.5", | ||
"fossil-delta": "^1.0.1", | ||
"msgpackr": "^1.9.1" | ||
"msgpackr": "^1.9.1", | ||
"@colyseus/core": "^0.16.0-preview.0" | ||
}, | ||
@@ -30,3 +30,3 @@ "author": "Endel Dreyer", | ||
}, | ||
"gitHead": "0ec5c17379936d74f4fa18ba68d16cbb7ed2c298" | ||
} | ||
"gitHead": "320a0325f01eff3cd7afa8fb2efa80077ebdbf4a" | ||
} |
<div align="center"> | ||
<a href="https://github.com/colyseus/colyseus"> | ||
<img src="media/header.png?raw=true" /> | ||
<img src="media/logo.svg?raw=true" width="60%" height="300" /> | ||
</a> | ||
@@ -10,6 +10,6 @@ <br> | ||
</a> | ||
<a href="http://discuss.colyseus.io" title="Discuss on Forum"> | ||
<a href="https://github.com/colyseus/colyseus/discussions" title="Discuss on Forum"> | ||
<img src="https://img.shields.io/badge/discuss-on%20forum-brightgreen.svg?style=for-the-badge&colorB=0069b8&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfjAgETDROxCNUzAAABB0lEQVQoz4WRvyvEARjGP193CnWRH+dHQmGwKZtFGcSmxHAL400GN95ktIpV2dzlLzDJgsGgGNRdDAzoQueS/PgY3HXHyT3T+/Y87/s89UANBKXBdoZo5J6L4K1K5ZxHfnjnlQUf3bKvkgy57a0r9hS3cXfMO1kWJMza++tj3Ac7/LY343x1NA9cNmYMwnSS/SP8JVFuSJmr44iFqvtmpjhmhBCrOOazCesq6H4P3bPBjFoIBydOk2bUA17I080Es+wSZ51B4DIA2zgjSpYcEe44Js01G0XjRcCU+y4ZMrDeLmfc9EnVd5M/o0VMeu6nJZxWJivLmhyw1WHTvrr2b4+2OFqra+ALwouTMDcqmjMAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDItMDFUMTg6MTM6MTkrMDE6MDAC9f6fAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTAyLTAxVDE4OjEzOjE5KzAxOjAwc6hGIwAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAAASUVORK5CYII=" alt="Discussion forum" /> | ||
</a> | ||
<a href="https://discord.gg/RY8rRS7"> | ||
<a href="http://chat.colyseus.io"> | ||
<img src="https://img.shields.io/discord/525739117951320081.svg?style=for-the-badge&colorB=7581dc&logo=discord&logoColor=white"> | ||
@@ -23,3 +23,3 @@ </a> | ||
Colyseus is an Authoritative Multiplayer Framework for Node.js, with clients | ||
available for the Web, Unity3d, Defold, Haxe, and Cocos2d-X. ([See official clients](#%EF%B8%8F-official-client-integration)) | ||
available for the Web, Unity3d, Defold, Haxe, and Cocos. ([See official clients](#%EF%B8%8F-official-client-integration)) | ||
@@ -33,77 +33,32 @@ The project focuses on providing synchronizable data structures for realtime and | ||
You're encouraged to take a look on [some games being developed with | ||
it](https://discuss.colyseus.io/category/5/showcase) and make your own! | ||
## Key features: | ||
> ⭐️ Enjoying Colyseus? Show your support by starring the project on GitHub ⭐️ | ||
## What Colyseus provides to you: | ||
- WebSocket-based communication | ||
- Simple API in the server-side and client-side. | ||
- Automatic state synchronization between server and client. | ||
- Matchmaking clients into game sessions | ||
- Automatic state synchronization from server-to-client (delta compressed) | ||
- Matchmaking clients into game rooms/sessions | ||
- Scale vertically or horizontally | ||
## What Colyseus won't provide: | ||
See [public roadmap](https://github.com/colyseus/colyseus/wiki/Public-Roadmap) for future plans. | ||
- Game Engine: Colyseus is agnostic of the engine you're using. Need Physics? Add your own logic / package. | ||
- Database: It's up to you to configure and select which database you'd like to use. | ||
See [roadmap](https://github.com/colyseus/colyseus/wiki/Roadmap) for our future plans. | ||
# 🚀 Quickstart | ||
Create a bare-bones Colyseus server by using `npm init colyseus-app`. | ||
Create a bare-bones Colyseus server by using `npm create colyseus-app@latest`: | ||
``` | ||
npm init colyseus-app my-colyseus-server | ||
npm create colyseus-app@latest my-colyseus-server | ||
cd my-colyseus-server | ||
npm start | ||
``` | ||
# 🏟 Colyseus Arena: Fast & Scalable Cloud Hosting | ||
- Looking for a fully managed solution for your Colyseus game server? | ||
- Want to focus on game development and not on the hosting and infrastructure? | ||
- Launching a production title and need a solution for 1,000 to 100,000+ CCUs? | ||
# Sponsors | ||
If so [Colyseus Arena](https://www.colyseus.io/arena) cloud hosting is the solution you are looking for. Easily upload your existing Colyseus Server code and get started today for Free! | ||
The sustainability of the project relies on **Colyseus Cloud** subscriptions and sponsorships. If you are not using Colyseus Cloud, please consider [sponsoring the project](https://github.com/sponsors/endel) 💖 | ||
# 🕹️ Official Client Integration | ||
<a href="https://cdn.jsdelivr.net/gh/colyseus/.github/sponsorkit/sponsors.svg"> | ||
<img src="https://cdn.jsdelivr.net/gh/colyseus/.github/sponsorkit/sponsors.svg" width="100%" /> | ||
</a> | ||
- [JavaScript/TypeScript](https://github.com/colyseus/colyseus.js) | ||
- [Unity](https://github.com/colyseus/colyseus-unity3d) ([unity3d.com](https://unity3d.com/)) | ||
- [Defold Engine](https://github.com/colyseus/colyseus-defold) ([defold.com](https://www.defold.com/)) | ||
- [Haxe](https://github.com/colyseus/colyseus-hx) ([haxe.org](https://haxe.org/)) | ||
- [Construct 3](https://github.com/colyseus/colyseus-construct3) ([construct3.net](https://www.construct.net/)) | ||
- [Cocos2d-x](https://github.com/colyseus/colyseus-cocos2d-x) ([cocos2d-x.org](https://cocos2d-x.org/)) | ||
# Contributors ✨ | ||
# 🛠️ Tools | ||
- [@colyseus/social](https://github.com/colyseus/colyseus-social) - Authentication and Social features for Colyseus | ||
- [@colyseus/proxy](https://github.com/colyseus/proxy) - Proxy & Service Discovery for scaling Colyseus | ||
- [@colyseus/monitor](https://github.com/colyseus/colyseus-monitor) - A Web Monitoring Panel for Colyseus | ||
- [@colyseus/loadtest](https://github.com/colyseus/colyseus-loadtest) - Utility tool for load testing Colyseus | ||
## Tools made by the community ❤️ | ||
- [colyseus-hxjs](https://github.com/serjek/colyseus-hxjs): Haxe externs for colyseus server (by [@serjek](https://github.com/serjek)) | ||
- [colyseus-kotlin](https://github.com/doorbash/colyseus-kotlin): Client for Java/Kotlin (by [@doorbash](https://github.com/doorbash)) | ||
- [Stencyl Extension](http://community.stencyl.com/index.php/topic,61150.0.html): [Stencyl](http://stencyl.com) extension to communicate with a Colyseus server (by [MdotEdot](http://www.stencyl.com/users/index/32424)) | ||
- [Colyseus-ObjC](https://github.com/swittk/Colyseus-ObjC): Client for Objective C (by [@swittk](https://github.com/swittk)) | ||
- [Colyseus-for-C2](https://github.com/Keevle/Colyseus-for-C2): Client for Construct 2 (by [@Keevle](https://github.com/Keevle)) | ||
# Usage examples | ||
See the [official examples](https://github.com/colyseus/colyseus-examples) for | ||
usage reference with the latest version of Colyseus. | ||
- [Tech Demo: Shooting Gallery](https://github.com/colyseus/unity-demo-shooting-gallery) - Unity + Colyseus "Shooting Gallery" Tech Demo | ||
- [Colyseus + PixiJS Boilerplate](https://colyseus-pixijs-boilerplate.herokuapp.com/) ([source-code](https://github.com/endel/colyseus-pixijs-boilerplate)) - Simplistic agar.io implementation using [PixiJS](https://github.com/pixijs/pixi.js) | ||
- [Colyseus + BabylonJS Boilerplate](https://babylonjs-multiplayer.herokuapp.com/) ([source-code](https://github.com/endel/babylonjs-multiplayer-boilerplate)) - Bare-bones [BabylonJS](https://github.com/BabylonJS/Babylon.js) example | ||
- [Tic Tac Toe](https://tictactoe-colyseus.herokuapp.com) ([source-code](https://github.com/endel/tic-tac-toe)) - Tic Tac Toe using [PixiJS](https://github.com/pixijs/pixi.js) and [Defold Engine](https://defold.com) | ||
- [Collaborative Drawing Prototype](https://colyseus-drawing-prototype.herokuapp.com/) ([source-code](https://github.com/endel/colyseus-collaborative-drawing)) - Collaborative drawing using HTML5 canvas. | ||
- (outdated: < v0.8.x): [tanx](https://playcanvas.com/project/367035/overview/tanxcolyseus), [react-example](https://github.com/endel/colyseus-react-example), [LD35 entry: dotower](http://ludumdare.com/compo/ludum-dare-35/?action=preview&uid=50958) | ||
# Contributors | ||
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
@@ -126,3 +81,3 @@ | ||
<td align="center"><a href="https://github.com/enriqueto"><img src="https://avatars2.githubusercontent.com/u/5557196?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Enriqueto</b></sub></a><br /><a href="#business-enriqueto" title="Business development">💼</a></td> | ||
<td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#question-fazriz" title="Answering Questions">💬</a> <a href="https://github.com/colyseus/colyseus/commits?author=fazriz" title="Code">💻</a> <a href="#ideas-fazriz" title="Ideas, Planning, & Feedback">🤔</a> <a href="#business-fazriz" title="Business development">💼</a></td> | ||
<td align="center"><a href="https://github.com/fazriz"><img src="https://avatars0.githubusercontent.com/u/2628698?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fazri Zubair</b></sub></a><br /><a href="#business-fazriz" title="Business development">💼</a></td> | ||
<td align="center"><a href="https://twitter.com/Federkun"><img src="https://avatars2.githubusercontent.com/u/21344385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Federico</b></sub></a><br /><a href="https://github.com/colyseus/colyseus/issues?q=author%3AFederkun" title="Bug reports">🐛</a> <a href="https://github.com/colyseus/colyseus/commits?author=Federkun" title="Code">💻</a></td> | ||
@@ -161,8 +116,4 @@ <td align="center"><a href="https://github.com/mobyjames/"><img src="https://avatars0.githubusercontent.com/u/1327007?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Jacoby</b></sub></a><br /><a href="#question-mobyjames" title="Answering Questions">💬</a> <a href="#example-mobyjames" title="Examples">💡</a> <a href="#content-mobyjames" title="Content">🖋</a></td> | ||
# Backers / Supporters via Patreon | ||
As of February 2021, Colyseus is owned and sponsored by [Lucid Sight](https://www.lucidsight.com/). A warm **thank you** for previous supporters of the project is forever documented in the [early supporters wiki page](https://github.com/colyseus/colyseus/wiki/Early-supporters-(2017-2021)). | ||
# License | ||
MIT |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
27047
156
115
+ Added@colyseus/clock@1.0.0(transitive)
+ Added@colyseus/core@0.16.0-preview.36(transitive)
+ Added@colyseus/msgpackr@1.10.5(transitive)
+ Added@colyseus/schema@3.0.0-alpha.42(transitive)
+ Added@colyseus/timer@1.0.1(transitive)
- Removed@colyseus/core@0.15.57(transitive)
- Removed@colyseus/schema@2.0.36(transitive)
- Removed@gamestdio/clock@1.1.9(transitive)
- Removed@gamestdio/timer@1.4.2(transitive)
- Removedws@7.5.10(transitive)