Golden Lord on Mobile: Post-Mortem
I said Golden Lord works on mobile before... well, this time I really mean it.

So what went into making this work on mobile?
The most obvious thing I had to do was to deal with the varying screen sizes and the fact that touch gestures make the window scroll. My solution to this problem was twofold: first, use media queries to handle portrait-mode vs. landscape-mode screens differently, and second, use fullscreen mode whenever possible in order to get rid of the browser UI. Fullscreen requires a bit of care, though. It can only be launched in response to a user request. So I have it request fullscreen when you start the game, and then jump back out of fullscreen when the game is paused or on game over. And then Safari for some reason STILL isn't using the standardized event names, so I had to add special handling for that.
It also turns out that some browsers refuse to preload audio files even if you ask them to. So in order to make the loading process actually run to completion reliably, I had to make the sound effects claim to be done before they were actually fully playable. It shouldn't cause any issues on any real-world situations for sound effects, but it might cause stuttering for background music.
I found a few honest bugs while I was at it, too. (There's one I've not fixed because I'd actually worked around it during the jam and I don't want to dive into fixing it all just yet.)
So if you haven't played Golden Lord yet, give it a try now!