A brand new game
for Windows, Linux, Mac, HTML5, 3DS Homebrew and more
every week,
unless exhausted!
About Games Music Pixelart Poetry Home Patreon Scores JNKPlat Petit Switch
Touch Controls - Part One
  12th July, 2019
PreRelease - Starting to implement Touch Controls
Started to make some progress with Touchscreen Controls, for Browsercade, today.
The hard part was getting this button to work..


The scaling consisted of figuring out the best way to scale the virtual screen, finding the best size to scale it to, and then figuring out whether it's safe to have canvas touch controls work on a lower "control" canvas whilst still allowing touch input to work on the upper "game" canvas..


Lots of testing for all the different browsers, and then tonight I'll start to add some actual buttons to the thing.

Hopefully it should work more or less as expected.

Views 11, Upvotes 0
Site credits : If you can see it, Jayenkai did it.
(c) Jayenkai 2017 and onwards. RSS feed
Blog - Touch Controls - Part One - AGameAWeek