Hacker News new | past | comments | ask | show | jobs | submit login
Show HN: Reading background videos from the SD card in a GBA game (youtube.com)
1 point by rodri042 8 months ago | hide | past | favorite
Hey there! I'm sharing here my Pump It Up port for the Game Boy Advance. The latest update adds a feature where the game can display background videos, reading them from the flashcart's SD card (in this case, an EverDrive GBA X5). Support for the EZ Flash Omega is still in the works.

The code uses elm-chan's FatFs (a small FAT32 library) to find the right sectors, and then DMAs each uncompressed video frame directly into VRAM, enabling 60FPS video playback efficiently. With the 32MiB ROM size limit no longer being an issue, I opted to not compress the videos at all, which allowed to also run other things in the game loop like GSM audio decoding, the chart-reading routines or the wireless adapter multiplayer code.

Here's the game source code: https://github.com/afska/piugba To try the video feature, you need an actual Game Boy Advance plus the EverDrive flash cart, so it's a bit niche. But I hope the video and the explanation illustrates how it works :)

Let me know what you think!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: