I thought i'd share this here, may be a good idea to add it to the HTML section:
if your HTML games aren't loading images, the problem is probably flatpak!
in order to play HTML games using flatpak versions of firefox (or any flatpak program, really) you'll need to change permissions in order to load images, since the flatpak sandbox is what's keeping firefox from loading local files.
this is easily done using flatseal, an app for managing flatpak permissions, where you'll need to add file access permissions to wherever you're storing your games. you also need to do this for your home directory, since otherwise firefox opens a copy under /run/user/1000/doc/ where you'll also lack permissions, because flatpak lacks permissions in this directory (don't change that, bad idea!).
"all my browser data is gone! HELP!" (relax, easy fix)
<-- make a BACKUP first! don't do this part without a backup! -->
after you change the permissions using flatseal for the first time, your user profile might appear to be "gone".
it's not gone, flatseal just comes with a default setting for the location of profile data, which is different from the flatpak default.
this is easily fixed by copying your old profile data into the new location!
after this, the images should load!
(this was driving me completely nuts...i'm a dumdum and keep forgetting that flatpaks run in a sandbox...)