I want to create a program to run on a raspberry pi that can interact with an emulator (possibly multiple) to simply start up a random game from a list and let it run (displaying the emulator on a screen) for a few minutes on the title screen, and then cycle to the next one. The idea is to have whats basically a fun screensaver to display in my living room.
I have a decent amount of programming experience so I’m confident I can write it once I know what libraries or tools to use, but I’m having a lot of trouble finding what emulators support programmatic interaction in this way. When I try to search it on google, all I can find is people using AI to play games. I guess it might be possible to simply start up the emulator(s) by sending commands to the command line, but what would I use to shut it down when its time to switch to the next game?
Eventually I’d like to have it load up save states and send saved inputs to show off gameplay snippets of toll assisted speedruns (TAS) or casual gameplay, but just loading up the games would be fine for now.