match-viewer
v0.1.10
Published
A match viewer that can replay matches for Planet Lia games or any kind of 2D game. The only requirement is to store the match state in a replay file format documented in [How to Write Replay Files](#how-to-write-replay-files) guide. It is very simple, re
Downloads
78
Readme
Match Viewer
A match viewer that can replay matches for Planet Lia games or any kind of 2D game. The only requirement is to store the match state in a replay file format documented in How to Write Replay Files guide. It is very simple, really flexible and it provides many cool features such as changing speed when playing a replay, jumping freely in time, displaying charts with statistics and much more.
How to Write Replay Files
Are you developing your own game for Planet Lia or are you just interested in how it works?
Run
git clone REPO_URL
cd games-utils/match-viewer/
npm install
python3 serve_games_assets.py -p 3337 ../../games/
- This will serve assets from
games/
directory at port3337
which is used insrc/App.tsx
file by default. It will also allow CORS for easier development.
- This will serve assets from
npm start
- Visit http://localhost:3000/
Test
Run all tests with npm test -- src
.
To run with coverage run npm test -- src --coverage
.