We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Web API’s recommended for Verge3d Web Apps – implementing into HTML Document?

Home Forums Programming Web API’s recommended for Verge3d Web Apps – implementing into HTML Document?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #66363
    c4cc
    Participant

    Example:
    to pause and unpause such a Web App, can I use Web API’s, such as this? Can these mouse and keyboard controls Web API be implemented too?

    Is it recommended to apply the necessary HTMLMediaElements, and by extensions, Web API’s, or do more user friendly frameworks alternatives exist?

    I know Verge3D puzzles has an Event puzzle for mouseEvent, but not for keyboard Events. How do I apply javascript or Web API’s to a verge3d Blender or Maya content embedded in HTML, so keyboard events can register as game controls? (e.g., HTML DOM is used to change HTML elements, but if I were to use HTMLDOMDocument, how do I apply Javascript Keyboard Events to HTML DOM Document, and to enable or disable the keyboard controls if my web app is paused?

    Sorry for the stupid question, but I’d like to learn how to integrate certain Web API’s into my javascript code for my Web Game.

    #66364
    kdv
    Participant

    to pause and unpause such a Web App, can I use Web API’s, such as this?

    No. That’s for audio/video elements . Verge3D app can be paused/resumed this way

    // pause an app and disable controls
    app.pause();
    app.controls.enabled = false;
    
    //resume an app and enable controls
    app.resume();
    app.controls.enabled = true;

    but not for keyboard Events.

    See the magic

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #66378
    c4cc
    Participant

    Thanks, this was helpful. Besides the basic javascript/vue.js Events for mouse and keyboard Events, any other recommended javascript/vue.js for the HTML document that my Web game/app is hosted in?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.