-- Leo's gemini proxy

-- Connecting to republic.circumlunar.space:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Making Smolpxl work on phones and tablets


I've added the first features intended to make Smolpxl games work well on touch interfaces like phones and tablets:


[‡ Spring game with touch controls]


Smolpxl games

[‡ Spring game with touch controls]


I've added a button bar at the bottom (and moved the navigation buttons to the top).


I'm looking for feedback on this:


Does it work on your device?

Are the buttons the right size?

Do they look ok? If not, how could they look better?

For games that require arrow keys, do you need them in the normal arrow-keys layout, or is a simple row fine?


[‡ Duckmaze game with touch controls in a single row]


[‡ Duckmaze game with touch controls in a single row]


If you're writing a game and you want to add buttons like this, you just need to add a single line like this:


game.showControls(["MENU", "SELECT", "BUTTON1", "BUTTON2"]);

or this:


game.showControls(["MENU", "SELECT", "LEFT", "DOWN", "UP", "RIGHT"]);

and they should appear.


Originally posted at 2021-02-07 03:49:40+00:00. Automatically generated from the original post : apologies for the errors introduced.


original post

-- Response ended

-- Page fetched on Sun May 19 07:59:24 2024