cloud-game

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2019 License: Apache-2.0

README

Klog, Web-based Cloud Gaming Service

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


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

Klog 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. 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 libopus-dev libopusfile-dev

# MacOS
brew install libvpx pkg-config libopus libopusfile

# Windows
... not tested yet ...

And run

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

Documentation

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

Directories

Path Synopsis
credit to https://github.com/fogleman/nes credit to https://github.com/fogleman/nes credit to https://github.com/fogleman/nes
credit to https://github.com/fogleman/nes credit to https://github.com/fogleman/nes credit to https://github.com/fogleman/nes
nes
credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go
credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go
credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go
credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go credit to https://github.com/poi5305/go-yuv2webRTC/blob/master/webrtc/webrtc.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL