Minesweeper-nw is a Minesweeper game for the Numworks calculator, written in Rust (no_std/bare metal / NO OS). It runs on embedded hardware with approximately 100KB of RAM (heap and stack combined) on a Cortex-M7.
Due to severe screen tearing, th…
Minesweeper-nw is a Minesweeper game for the Numworks calculator, written in Rust (no_std/bare metal / NO OS). It runs on embedded hardware with approximately 100KB of RAM (heap and stack combined) on a Cortex-M7.
Due to severe screen tearing, the LCD cannot be fully redrawn every frame, even though the CPU is powerful enough. This required implementing a custom “dirty rect” or partial redraw system to update only the necessary areas (:
There is no pre-existing game or UI engine, i had to code everything myself while dealing with the screen’s constraints. However.
I made sure to avoid hardcoding as much as possible, designing the whole system to be (in my opinion) quite modular and well-structured.
I’m using Gemini to translate documentation and to ask about how game engines and UI systems work.