1 decade ago
by Jack
I feel that there should be built-in jQuery, And jQuery UI, jQuery Mobile, for purposes such as buttons to add click events, menus, And Mobile Integration.
You can use JQuery and Bootstrap or whatever you want in the browser, but you won't be able to use any of the DOM (HTML elements) when compiling for mobile.
When you compile for mobile apps, it only uses the Canvas element, so all your buttons and fonts have to appear in the canvas as pixels and can't be a separate DOM element on top of the game.
The reason for this is performance. The processor only concentrates on redrawing the canvas and going through the game loop. If you had HTML elements, even just a few buttons, you'd have to include an entire web browser in each build of your game so the buttons would work.
Page 1 of 1
« first
« previous
next ›
last »