Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lorencerri/play-doom

An API to fetch video frames of Doom based on a given input
https://github.com/lorencerri/play-doom

Last synced: 18 days ago
JSON representation

An API to fetch video frames of Doom based on a given input

Awesome Lists containing this project

README

        

**Play Doom!**

![](https://doom-api.plexidev.org/frame/github/?type=.gif)

### Controls (rewind)

- Idle Frame [10x] [25x] [50x]
- Escape (Open/Close Menu)
- Enter
- Arrow [Left (5x) (25x)] [Right (5x) (25x)] [Up (5x) (25x)] [Down (5x) (25x)]
- Alt
- Shift
- Space (Use)
- CTRL (Shoot) [Spam Button]
- Tab (Map)
- Shift + [Up Arrow] [Down Arrow] [Left Arrow] [Right Arrow]
- Strafe [Left] [Right]
- Yes
- No
- Item Slot [2] [3] [4] [5] [6] [7]

### Meta Actions

- Reset Game

### Videos

- Get full video of current run
- Get full video of all previous runs combined
- Get full video of all previous runs combined + current run

**## END_GAME ##**

## play-doom

An API wrapper for [@lorencerri/doomreplay](https://github.com/lorencerri/doomreplay), enter the submodule for more information.

**Statistics**

**Endpoints**

```sh
GET /stats?image=true # Returns the global stats

GET /video/:namespace/current # Returns a video of the full current run
GET /video/:namespace/full # Returns a video of all the previous runs combined
GET /video/:namespace/combined # Returns a video of all the previous runs combined, plus the current run

GET /frame/:namespace?type=gif # Returns the current frame

GET /input/:namespace?image=true # Returns an image or text
GET /input/:namespace/reset?callback="" # Resets the input buffer
GET /input/:namespace/append?keys=""&callback="" # Appends keys to the input buffer
GET /input/:namespace/rewind?amount=1&callback="" # Rewinds the input buffer by N keys
```

**Notes**

- Use `git clone --recursive https://github.com/lorencerri/play-doom.git` to clone play-doom & doomreplay
- Use [vscode-drawio](https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio) to open `play-doom.drawio` in vscode