Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PQ93

a fantasy console for making small games · By transmutrix

Is there any plan for virtual control on mobile web?

A topic by Juno Nguyen created Jun 17, 2020 Views: 205 Replies: 1
Viewing posts 1 to 2

I'd really like to be able to run this well from a smartphone.

Developer

Hi! Honestly, I'm not sure.

The web builds use Emscripten + SDL2, and I've thus far been unable to open the on-screen keyboard for typing code.

For playing games, I could add some touch buttons if the browser reports a mobile platform, but for this to work well I would need to accommodate the screen's aspect ratio properly -- conceptually a trivial problem, but resizing the JS canvas can be unreliable seemingly (and, in itch's case, the game is in a fixed-sized iframe anyway).