scottschiller / ArmorAlley

A browser-based interpretation of Armor Alley, a combat strategy game originally released in 1990 for the Macintosh and MS-DOS PCs.
https://armor-alley.net/
Other
91 stars 25 forks source link

Request for two command options for mobile #9

Closed artfoundry closed 7 months ago

artfoundry commented 8 months ago

Need to have a command for mobile to flip the direction of the chopper, so that you can fly backward (like maybe double tap or tap with second finger). Also an option for mobile to change the movement velocity (to make flying slower and doing tricky agility maneuvers easier).

scottschiller commented 8 months ago

Thanks for the thoughts. I think a double-tap could work regarding direction, if done in "empty space" and not on a button etc. I can look at slowing down the "rate" at which the helicopter chases the pointer, per se - perhaps make that an option in preferences.

scottschiller commented 8 months ago

Update! "Auto-flip" is now a preference in the options dialog.

When auto-flip is off:

Auto-flip can also be toggled in-game, in addition to using the options panel.

Side note: I have also added a "game speed" control, similar to the original. +/- keys can adjust the speed in-game as well, and that might be handy. I don't have a touch version of the +/- keys presently, but it can be set and updated in options.

artfoundry commented 8 months ago

Having the option to turn off auto flip makes a huge difference on mobile! Turning down game speed even just 20% also really helps with helicopter control on mobile. Did you intend to have it defaulted to 115%?

scottschiller commented 8 months ago

Thanks for trying out the latest.

I've gotten used to the prior auto-flip behaviour on mobile and knowing that I can "turn and fire" pretty reliably, but I'll try it with the feature off and see how it works. I think the double and triple-tap are working OK, but let me know if you find them to be buggy or inconsistent.

I made a few changes to the game speed code in development, and may have messed up local storage along the way. The game speed should default to 100% - opening a new / incognito browser should confirm that. With the range being 25% to 200%, the default 100% position is not visually centered on the slider UI. I don't love the look, but each "notch" is an increment of 5%. I didn't want to go down to 0%, but maybe I illustrate it and have a cut-off at 5% or something. ;)

scottschiller commented 8 months ago

Setting a default speed of 80% or similar on mobile might be wise. The game does feel a bit fast-paced and frantic when using touch controls.

artfoundry commented 8 months ago

Ok I do see 100% default with incognito. Weird - I did actually see the number 115 before, but maybe I hit the slider accidentally without realizing it or something.

scottschiller commented 7 months ago

I forgot to link and mention - I've set the game default speed to 80% for mobile/touch in cece24f, I think your suggestion was spot on. The game feels nicely paced on smaller screens at that speed.

I'm marking this resolved, thanks again for the great feedback.