Replies: 1 comment
-
Window.js does not support HTML and doesn't have a DOM: https://windowjs.org/about/faq#how-does-windowjs-compare-to-a-web-browser Instead of using HTML elements like to build a UI, in Window.js you'd just draw directly to the built-in canvas, using the same API as for a element in HTML5. Window.js works as if there was a taking the entire window space, all of the time.
Running libraries like Phaser, Pixi and Threejs doesn't work right now, because those libraries require the DOM. It is possible however to fake the DOM with a polyfill; this has been done for p5js: https://windowjs.org/about/processing A similar approach may well work for Phaser but hasn't been attempted yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Everything I've read on the site is about WebGL and Canvas. Does WindowJS support DOM usage with CSS? It looks like a nice way to develop desktop applications without the full browser (like Electron and NWjs). It would be good to mention this in the website and here.
Also, can it run libraries like Phaser.js?
Beta Was this translation helpful? Give feedback.
All reactions