Skip to content

Commit 8274943

Browse files
committed
Add input system support to Doom demo
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.
1 parent 845820c commit 8274943

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ In `rv32emu` repository, there are some prebuilt ELF files for testing purpose.
103103
* `dhrystone.elf` : See [rv8-bench](https://github.com/michaeljclark/rv8-bench)
104104
* `pi.elf` : See [tests/pi.c](tests/pi.c)
105105
* `quake.elf` : See [sysprog21/quake-embedded](https://github.com/sysprog21/quake-embedded)
106+
* `doom.elf` : See [sysprog21/doom_riscv](https://github.com/sysprog21/doom_riscv)
106107

107108
## Reference
108109

build/doom.elf

100644100755
-358 KB
Binary file not shown.

docs/demo.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@
99

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

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

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

0 commit comments

Comments
 (0)