Week 46: support for touch screen devices
Added 2023-09-18 17:55:24 +0000 UTCThis week I worked on improving support for mouse and touch devices. This was one of the items I listed in the to-do list for the minimal demo that I hope to publish soon. It ended up being all Lua coding work.
In the first part of the week I focused on menus. It is now possible to launch and select items using touch gestures and mouse clicks.
I then moved to work on a new βvirtual joystickβ with the aim of allowing the demo to run more nicely on mobile devicesβ¦ well, only via the browser for now. The idea is that when the player touches a certain area of the screen a stylized picture of a joystick shows. This virtual joystick can be controlled with touch gestures and produces corresponding joystick events. Not rocket science, but all stuff worth doing for the release, I think.
I attach a video to show what I have at the moment. There is still some work to make the menus more consistent and the general user experience better. Then I need to try the demo on more devices. That scares me a bit. Fingers crossed!