Cardputer Doom for M5Stack Cardputer
An ESP32 audio project for M5Stack Cardputer involving SD card.
Parts and sourceBefore you start
Check the exact SD card configuration against the upstream wiring or parts list.
Upstream README
Doom!
This is Doom for M5 Cardputer
Cardputer does not have PSRAM, so things get tricky
Is mostly a port of prBoom Port to GBA by doomhack
HAL was taken from M5 Official User Demo
Some parts collected from Retro-Go project
Can work with original WADs after their conversion with GbaWadUtil, also lended from doomhack.
WAD is compiled into binary itself
Built against ESP-IDF v4.4.6
Save-load works with SD card
Save-load crashes without SD card
Sometimes crashes randomly
Controls
- Forward: ;
- Backward: .
- Left: l
- Right: '
- Fire: opt
- Strafe left: ctrl
- Strafe right: alt
- Use: fn
- Map: tab
- Weapon: 1-7
Cheats
- iddqd - god mode
- idkfa - keys, weapons, armor
- idc - jump to level EM (eg. idc14 jumps to E1M4)
Done
- User input
- Sounds (SFX)
- Music
- Save & Load
- Optimize user input
- Cheats!
To do
- Load WAD from SD card (somehow, mmap?)
- Fix minor music issues
Build
git clone https://github.com/romalik/m5cardputer_doom
idf.py build
idf.py flash -p /dev/ttyACM0
Wad Util
mkdir build
cd build
qmake ../GbaWadUtil.pro
make
cd ..
# place doom1.wad file somewhere near here
# gbadoom.wad is needed to cover missing assets
./build/GbaWadUtil -in doom1.wad -out gdoom1.wad -cfile doom1.c -pwad ./gbadoom.wad
# place doom1.c to main/doom/source/iwad/ and recompile the firmware