Does Scirra create 2 official Node-webkit tools?

Discussion and feedback on Construct 2

Post » Wed Feb 06, 2013 1:24 pm

Yes, the main reason there aren't more node-webkit specific features is just time. They're still pretty new and I'll probably be expanding it through future releases.

Another point is that every platform-specific plugin makes it harder to port your project. Ideally a project designed for node-webkit would just export to the web or another platform like Windows 8 without losing too much functionality, or throwing errors on startup due to missing files on disk or whatever you relied on. So I'd want to very carefully design any node-webkit specific features and try very hard to integrate them with what can already be done in a browser.

For example, take file I/O. Chrome supports an experimental filesystem API and most modern desktop browsers support IndexedDB, both of which are suitable for storing large amounts of data in a filesystem-like arrangement. If we just quickly bolt on some file I/O functions to node-webkit via a platform-specific plugin, it's likely any games you design using it will be broken when ported to other platforms. However, if we very carefully design a file storage plugin that uses different storage backends (filesystem on Chrome, IndexedDB on Firefox/IE10, disk on node-webkit) then your game should still work in web browsers even though it uses local files. That's far more valuable than a single platform-specific hack - but it's also a lot more time consuming to design. The same goes for most other features you'd want from node-webkit.Ashley2013-02-06 13:25:22
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Fri Feb 22, 2013 12:31 am

@Ashley thanks for your answer!
I missed this thread.

Actually, do you have some comments about export settings like desktop icon and task bar icon, Package.json to adjust windows size or some thing?Joannesalfa2013-02-22 00:31:40
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Fri Feb 22, 2013 1:02 pm

Yes, hopefully a future update will have better support for icons. The window size from project properties should already be used.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Mon Mar 11, 2013 12:01 am

I'm opening an old thread, but i missed out on this, so here's my two cents:

Regarding my plugins, i wouldn't use any, except the "main" node-webkit plugin, that provides window control and some other stuff. That plugin is good enough, although it could use some improvements. Others, (especially FS) are just "proof of concept", whatever that means.

That said, I think node-webkit is a totally new and different platform, and provides a set of features we wont see implemented in Construct soon, and i'm ok with that. We need C2 to be stable and as multi-platform as possible, and Ashely is doing a perfectly good job with this. I'm happy with current implementation of node-webkit in C2.

I believe, that We as a community need to implement a whole Node.js API as a set of plugins. It's a set of features that is platform specific, and i think it's not Ashley's job to implement them beacuse it is not in the "write once export everywhere" spirit.

But, if we as a community make those plugins, it will make a totally new and powerful way to make node-webkit apps, and provide a totally new way to use C2.

I started some of that job with socket.io and http plugins (Ok, socket.io isn't part of node.js api, but i like it), and UDP plugin for C2, but decided not to release them, because i don't see any real need for them and not any developer interested it collaboration on improving them, and i don't want to make new members of community using something that is half-done. Current unfinished plugins are enough.

I would spend my spare time on developing these plugins further, but i haven't seen any real need for them, except "wow, this is cool".

If anybody is interested in collaboration, please contact me or start a new thread, we've got the whole task list done, it's right here

Cheers!
Be nice until it's time to not be nice
B
36
S
9
G
9
Posts: 293
Reputation: 6,652

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: BackendFreak, blackant, Mirlas, shinichild, TheRealDannyyy and 11 guests