mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-23 18:17:32 +00:00
Add ReadMe
This commit is contained in:
parent
07782e59f9
commit
e67d534471
1 changed files with 13 additions and 78 deletions
91
README.md
91
README.md
|
|
@ -5,7 +5,13 @@ Cloud Gaming Service is an open source Cloud Gaming Service building on 
|
||||
|
||||
# Code architecture
|
||||
|
||||
## Document
|
||||
[**Frontend**](cs2dclient)
|
||||
|
||||
[**Backend**](cs2dserver)
|
||||
|
||||
[**AIEnvironment**](gym)
|
||||
|
||||
## Codebase
|
||||
```
|
||||
.
|
||||
├── cs2dclient
|
||||
│ ├── index.html
|
||||
│ ├── src
|
||||
│ │ ├── config.js: javascript config
|
||||
│ │ ├── index.html
|
||||
│ │ ├── main.js
|
||||
│ │ ├── sprites
|
||||
│ │ │ ├── Leaderboard.js: Leaderboard object
|
||||
│ │ │ ├── Map.js: Map object
|
||||
│ │ │ ├── Player.js: Player object
|
||||
│ │ │ └── Shoot.js: Shoot object
|
||||
│ │ ├── states
|
||||
│ │ │ ├── Boot.js Boot screen
|
||||
│ │ │ ├── const.js
|
||||
│ │ │ ├── Game.js: Game master
|
||||
│ │ │ ├── message_pb.js: Protobuf Message
|
||||
│ │ │ ├── Splash.js
|
||||
│ │ │ └── utils.js
|
||||
│ │ └── utils.js
|
||||
├── cs2dserver
|
||||
│ ├── buildwall.js
|
||||
│ ├── cmd
|
||||
│ │ └── server
|
||||
│ │ └── server.go: Entrypoint running server
|
||||
│ ├── game
|
||||
│ │ ├── common
|
||||
│ │ ├── config
|
||||
│ │ │ └── 1.map: Map represented 0 and 1
|
||||
│ │ ├── eventmanager
|
||||
│ │ ├── gameconst
|
||||
│ │ ├── game.go
|
||||
│ │ ├── mappkg
|
||||
│ │ ├── objmanager
|
||||
│ │ ├── playerpkg
|
||||
│ │ ├── shape
|
||||
│ │ ├── shootpkg
|
||||
│ │ ├── types.go
|
||||
│ │ └── ws
|
||||
│ │ ├── types.go
|
||||
│ │ ├── wsclient.go
|
||||
│ │ └── wshub.go
|
||||
│ ├── generate.sh: Generate protobuf for server + client + AI environment
|
||||
│ ├── message.proto
|
||||
│ └── Message_proto
|
||||
│ └── message.pb.go
|
||||
├── gym: Training script for game (IN PROGRESS)
|
||||
│ ├── cs2denv.py: Agent to communicate with server. Can connect to localhost or prod server
|
||||
│ ├── lib
|
||||
│ │ ├── common.py
|
||||
│ ├── loadtest.py: Load test script to server
|
||||
│ ├── message_pb2.py
|
||||
│ ├── messenger.py
|
||||
│ ├── test_env.py
|
||||
│ ├── train2.py
|
||||
│ └── train.py
|
||||
├── Dockerfile
|
||||
└── run_local.sh
|
||||
```
|
||||
You can open port, so other person can access your local machine and play the game together.
|
||||
|
||||
# Credits
|
||||
|
||||
Pion Webrtc team for the incredible Golang Webrtc library and their supports https://github.com/pion/webrtc/
|
||||
Fogleman for the awesome nes emulator https://github.com/fogleman/nes
|
||||
fogleman for the awesome nes emulator https://github.com/fogleman/nes
|
||||
poi5305 for the video encoding https://github.com/poi5305/go-yuv2webRTC
|
||||
And last but not least, my longtime friend: https://github.com/trichimtrich for his
|
||||
bchanx for the gameboy https://github.com/bchanx/animated-gameboy-in-css
|
||||
And last but not least, my longtime friend Tri as the co-author.
|
||||
|
||||
# Contributor
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue