Minor fix + Update more collaborate games for fun

This commit is contained in:
giongto35 2020-04-19 03:35:28 +08:00
parent 27cee3976a
commit 7e8ebd5f74
3 changed files with 4 additions and 1 deletions

2
README.md vendored
View file

@ -92,6 +92,8 @@ Because the coordinator and workers need to run simultaneously. Workers connect
By clicking these deep link, you can join the game directly and play it together with other people.
- [Play Pokemon Emerald](http://cloudretro.io/?id=652e45d78d2b91cd%7CPokemon%20-%20Emerald%20Version%20%28U%29)
- [Fire Emblem](http://cloudretro.io/?id=314ea4d7f9c94d25___Fire%20Emblem%20%28U%29%20%5B%21%5D)
- [Samurai Showdown 4](https://cloudretro.io/?id=733c73064c368832___samsho4)
- [Metal Slug X](https://cloudretro.io/?id=2a9c4b3f1c872d28___mslugx)
And you can host the new game by yourself by accessing [cloudretro.io](http://cloudretro.io) and click "share" button to generate a deeplink to your current game.

2
go.mod vendored
View file

@ -9,6 +9,8 @@ require (
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b
github.com/gorilla/mux v1.7.3
github.com/gorilla/websocket v1.4.0
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/pion/webrtc/v2 v2.2.0
github.com/prometheus/client_golang v1.1.0
github.com/spf13/pflag v1.0.3

View file

@ -57,7 +57,6 @@ const input = (() => {
let arrBuf = new Uint8Array(2);
arrBuf[0] = data & ((1 << 8) - 1);
arrBuf[1] = data >> 8;
log.info(arrBuf)
event.pub(KEY_STATE_UPDATED, arrBuf);
unchangePacket--;