Coder Social home page Coder Social logo

Can't move the helicopter about armoralley HOT 3 CLOSED

JayLevine avatar JayLevine commented on May 19, 2024 1
Can't move the helicopter

from armoralley.

Comments (3)

JayLevine avatar JayLevine commented on May 19, 2024 1

Hi,

Yes, my XPS 13 has a touch screen. The link with dev=1 works as expected, mouse controls! And the regular play. link allows touch controls.

Thanks, Jay

from armoralley.

scottschiller avatar scottschiller commented on May 19, 2024

Whoops! πŸ˜… Thanks for the report - I think I know what's going on, here.

AA V2.0 is a huge upgrade from V1.x under the hood, including revamped mouse and touch input handling. The game was previously not very playable on mobile or tablets; it's much better these days, but I had to refactor a lot of input handlers between mouse and touch events.

I'm going to guess there are no JS errors in your console, and this is about the fact your Dell XPS 13 has a touch-capable screen as well as a regular keyboard and mouse input.

I used a rather naΓ―ve approach to "detect" touch support, which I suspect is the root cause. Someone pointed this out a while back, who may have also had a laptop with a touch-capable screen. I made a note, and then I forgot about it. Whoops. πŸ˜…

When you have a few, can you try loading up https://play.armor-alley.net/?dev=1 on that Dell XPS 13 and let me know if things work as expected? You should get the desktop UI version of the game (no visible touch controls like on mobile,) and keyboard and mouse input should work as expected.

Next test: if your touchscreen is enabled, ideally you should be able to touch and move the helicopter around the screen as well.

On mobile devices which I presume (currently) are "touch-first", the game shows touch controls on either side of the screen.
AA - mobile touch controls UI

from armoralley.

scottschiller avatar scottschiller commented on May 19, 2024

Excellent, thank you for confirming - and, thank you for playing my AA remake! I'll push a set of changes for this shortly.

from armoralley.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.