
chip8 emulator in the terminal
A chip8 emulator TUI, using Ratatui and Rust. There's still some things to workout with this, like the input handling, but for the most part its a fun little project with a couple cool little games to play right in your TUI. We had to use SDL2 in a tokio thread to handle input handling. Due to how the terminal handles input I was unable to get the KeyRelease, so still brainstorming a way to handle clearing the key state once a key is pressed. Was thinking about going a timeout route, but thought that would add some delay. So just for reference SDL2 opens up an essential "hidden" window, that you wont be able to see, but it has to be focused, if the SDL window is not focused your input will not be handled, unfortuneately, so that's the next thing on the list to fix. But, it's fun!
Just a simple cargo run [romname]
Pong -
br8kout-
Space invaders -
- Get key released and remove SDL2
- Fix some minor bugs
Please, have at it, lets see how far we can take emulator TUI's to the 🌝
Clyde - keighan@unlockedlabs.org