34

GitHub - giongto35/cloud-game: POGO, Web-based Cloud Gaming Service

 4 years ago
source link: https://github.com/giongto35/cloud-game
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

POGO, Web-based Cloud Gaming Service

SEA: http://cloud.webgame2d.com | US West: http://usw.cloud.webgame2d.com | US East: http://use.cloud.webgame2d.com | Europe: http://eu.cloud.webgame2d.com | Instruction: Instruction
For the best gaming experience, please select the closest region to you.

Video demo: https://www.youtube.com/watch?v=koqWB1VKflo


POGO is an open source Cloud Gaming Service building on WebRTC using browser as the main platform.

POGO stands for "POcket Gaming Online" aims to bring the most convenient gaming experience to gamer. You can play any games on your browser directly, which is fully compatible on multi-platform like Desktop, Android, IOS. This flexibility enables modern online gaming experience to retro games starting with NES in this current release.

Note: The current state of POGO are not optimized for production. The service will still experience lag under heavy traffic. You can try hosting your own service following the instruction in the next session.

screenshot

Feature

  1. Cloud gaming: Game logic is handled in server and streamed to user.
  2. Cross-platform compatibility: The game is run on webbrowser, the most universal builtin app. No console, plugin, external app or devices are needed. The device must support webRTC to perform streaming. Joystick is also supported.
  3. Vertically scaled: Services are distributed. The closest server with highest free resource will be assigned to user. (In development)
  4. Collaborative hosting: this is our invented term referring to the whole community can contribute to host the platform. Whenever the server is hosted and able to connect to the coordinator, it can join the cloud-gaming network and Collaboratively serve prod traffic. (In development)
  5. Local link: If you host a server on your local machine and play game on other devices close to that, the game will automatically detect running local server and serve the traffic. (In development)
  6. Cloud storage: Game state is storing on online storage, so you can come back to continue playing in a game.

Run on local by Docker

You try hosting the server yourself by running ./run_local_docker.sh. It will spawn a docker environment and you can access the emulator on localhost:8000.

Development environment

Install Golang https://golang.org/doc/install . Because the project uses GoModule, so it requires Go1.11 version.

Install dependencies

# Ubuntu
apt-get install -y pkg-config libvpx-dev

# MacOS
brew install libvpx pkg-config

# Windows
...

And run

  • ./run_local.sh
  • The scripts includes build the binary using Go module

Documentation

Design Doc
Implentation Doc

Follow up

This project demos the simplest cloud game with NES. Integrating with other emulator like GBA, NDS will also be possible. I'm welcome for the contribution.

Credits

Contributor

Nguyen Huu Thanh
https://www.linkedin.com/in/huuthanhnguyen/

Tri Dang Minh
https://trich.im


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK