erkyrath / quixe

A Glulx VM interpreter written in Javascript
http://eblong.com/zarf/glulx/
MIT License
169 stars 33 forks source link

gi_load.js interacts with the DOM #45

Open erkyrath opened 3 years ago

erkyrath commented 3 years ago

The intent of Quixe is that it should work as a module, delegating all DOM manipulation to glkote.js.

However, there are places in gi_load.js where this breaks down.

All of these should have alternatives when running, e.g., as a Node module.

curiousdannii commented 3 years ago

The URL api will help with the first, it's a global in both browsers and Node. Actually also for making URLs for images - using blobs should make it basically as efficient as external files.

I've actually wondered if the blorb/image stuff could be moved to the GlkOte repo. Any GlkOte+RemGlk type setup will need it, but it won't need the load code.

erkyrath commented 3 years ago

Used the URL api for absolutize(), as noted.