Jump to content

Input Forms in pixi


Queue
 Share

Recommended Posts

Hello everyone,

first of all I am almost completly new to the whole javascript world, especially pixi.js. But due to I am planning to get a graphic intense project done, I try to figure out wheater pixi is the right choice.

I will have a lot of user interaction, where I want to store certain input in my database. There will be a php backend handling ajax request and answering with json.

I am looking for convenient ways to get user input. Is there any option to create input fields directly in pixi?

I saw another approach where inputs are handled in modals, and therefore are "independent" from pixi. e.g. https://de2.big-bait.com/

What is the most common approach to get various data from the pixi frontend to my php backend?

Best Regards

Queue

Link to comment
Share on other sites

Don't fight it, just use the DOM for input fields. Sure, you can create your own and have Pixi render them, but, if the standard inputs are all you need just use those.

Pixi renders into a canvas which is just a DOM element that has the same properties as other HTML elements. You can layer input fields on top, underneath, beside, whatever you like.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...