nuttx-apps/games
Matteo Golin c2a652ba04 games/NXDoom: Initial port of Chocolate DOOM to NuttX.
This commit includes a (highly) modified version of Chocolate DOOM which
can run on NuttX. The majority of the modifications were made to pass
the NuttX style check. Some small modifications have been added to
support keyboard input, render graphics to frame buffers and directly
use the POSIX interfaces NuttX supplies, stripping out Windows/Mac stuff
and any references to SDL.

NOTE: Sound is currently not supported in any capacity, nor is the
networking stuff. A lot of Chocolate DOOM code was stripped out since it
was unused. If there is a need/desire to add it back later, the original
Chocolate DOOM source can be used as a reference.

WARNING: The NuttX keyboard codec is incredibly non-standard and so
there are problems translating from X11 keys to NuttX ones to play DOOM.
Right now, the CTRL key for firing doesn't work because the NuttX codec
has no concept of it. The NuttX codec should be modified (and other
input devices supported), but at the time of this port I am not
sufficiently comfortable doing so since I am afraid of breaking other
things in the kernel.

NOTE: This port (and likely the original DOOM) seems to be written with
32-bit computers in mind. As such, most things are given the type of
natural `int`, even when a single byte might do. There are significant
size optimizations that could be made to make this more suited to
embedded devices that NuttX typically runs on.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
2026-07-03 10:14:49 +02:00
..
brickmatch games/brickmatch: Add led matrix output option 2025-02-26 11:31:02 -03:00
cgol game: Aligned Cmake with Make 2025-11-14 22:40:17 +08:00
match4 games/match4: Add new match4 game 2025-07-12 08:38:32 -03:00
NXDoom games/NXDoom: Initial port of Chocolate DOOM to NuttX. 2026-07-03 10:14:49 +02:00
snake games/snake: Change consolekey magic numbers with ASCII macros 2025-07-16 10:32:16 +08:00
.gitignore apps/games: Add shift game 2022-07-31 13:41:43 +03:00
CMakeLists.txt game: Aligned Cmake with Make 2025-11-14 22:40:17 +08:00
Make.defs games: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00
Makefile games: migrate to SPDX identifier 2024-12-19 15:25:28 +08:00