With Flash pretty much dead, there is currently no way we can upload games or other interactive content that doesn't have to be downloaded. While you still can download Flash animations and run them on the projector, that isn't very convenient, and is rather risky since one of the major reasons Flash was discontinued was security.
Being able to upload HTML files would fix that. I've looked through some other forum posts where admins briefly touched on the issue and raised issues like HTML games requiring multiple files; however, this isn't exactly true. Images, videos, and in fact all resources can be encoded into base64, while JS/CSS can both be directly put into the document. This does increase file size
There are, of course, inherent risks with running user-generated code. While some of them can be mitigated, there will always be ways to get around that for bad actors. However, E621 already has an approval system. If this were implemented, I would suggest requiring any HTML uploads to be approved before being shown to general users, and during approval for the document to be shown in plaintext first; requiring non-obfuscated js in <script> tags would make any attacks easy to see.
I don't know if this is currently possible, and a lot of thought would have to be put into restrictions on what exactly is allowed. However, this is currently the only viable option I see for interactive content.