Might be easier (but just as much fun) to whet your palate by creating a pico-8 game first: https://www.lexaloffle.com/pico-8.php
The fantasy console that Pico 8 presents is still way more powerful in most ways than an NES though.
32KB cartridges
32KB RAM
a 1MB RAM limitation for the lua VM