Skip to content

Commit

Permalink
Add input system support to Doom demo
Browse files Browse the repository at this point in the history
This contribution makes Doom demo compatible with the input event system
and adds a list of all common Doom key bindings to docs/demo.md.
  • Loading branch information
alanjian85 committed Aug 19, 2022
1 parent 845820c commit 6ba6af3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ In `rv32emu` repository, there are some prebuilt ELF files for testing purpose.
* `dhrystone.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
* `pi.elf` : See [tests/pi.c](tests/pi.c)
* `quake.elf` : See [sysprog21/quake-embedded](https://github.com/sysprog21/quake-embedded)
* `doom.elf` : See [alanjian85/doom_riscv](https://github.com/alanjian85/doom_riscv)

## Reference

Expand Down
Binary file modified build/doom.elf
100644 → 100755
Binary file not shown.
10 changes: 8 additions & 2 deletions docs/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@

![Doom Gameplay](https://imgur.com/bLc5LG8.gif)

### Limitations
* The input system is not supported yet
### Main Key Bindings (All key bindings are listed in the "READ THIS!" menu)
* Move Forward/Backward: Up Arrow Key/Down Arrow Key
* Move Left/Right: Comma(,) Key/Period(.) Key
* Turn Left/Right: Left Arrow Key/Right Arrow Key
* Shoot: Left Mouse Button or CTRL Key
* Sprint: Shift Key
* 1: Fist
* 3: Shotgun

## Quake
**source**: [quake-embedded](https://github.com/sysprog21/quake-embedded/)
Expand Down

0 comments on commit 6ba6af3

Please # to comment.