Node-webkit & Construct 2

0 favourites
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I have to say that the performance of the game is more than acceptable.

    How it could be improved:

    Fullscreen, no chrome [window borders]

    Mouse capture / hide / replace cursor

    Custom icon on windowed game [not the HTML5 logo]

    Leaner exe with separate data files

    Cruft removal from exe [unused icons and cursors]

    And that would be just about the only criticisms. I don't know if these are inherent compiler or designer issues. Maybe a combination of both ;)

    If these issues are forced through the codebase... maybe someone, more clever than I, would see fit to contribute to (or fork) the project to address some of these points.

    Thanks, JohnnySheffield, for making your experiment available for us to scrutinize.

  • Fullscreen, no chrome [window borders] - i'll release a plugin in a few hours with this possibility sorted out

    Custom icon on windowed game [not the HTML5 logo] - edit the package.json to achieve this

    ----

    Leaner exe with separate data files

    Cruft removal from exe [unused icons and cursors]

    Mouse capture / hide / replace cursor

    ---- <img src="smileys/smiley35.gif" border="0"> me if i know :) ------

  • Okay... I used ResourceHacker to strip out the play buttons and closed captioned sign and the Visa and Mastercard logos and about 150 more unnecessary graphics bundled in the exe. Shrank the file size by 354K. Plays fine.

    In the grand scheme of things going from 38,896KB down to 38,551KB ain't really that much of a victory, but nice to know you can do it, if you're a control freak like myself ;P

  • Plugin "finished", you can download the plugin here

    and find more info on the plugin here

    Download demo with some of the functionality here

    This plugin is for the basic stuff, window size, title, clipboard, etc...

    Hopefully i'll get some time these days to dig in deeper and write some node.js module plugin for construct, i'm thingkin fs, to get access to local files, but maybe go for socket.io server side to get some multiplayer stuff rolling in the construct 2. It's nice to dream... :D

    Please test, post your ideas and anything that crosses your mind!

    Cheers! <img src="smileys/smiley41.gif" border="0" align="middle">

  • Playing with it now. Thanks for sharing

  • Good news; i sorted the loading time, it loads instantly now!

    Problem was in the index.html, i edited line 59 as follows:

         <script src='jquery-1.7.1.min.js'>\x3C/script>

    C2 was actually trying to get jquery form ajax.googleapis.com, once you say to construct to look for jquery locally everything is much, much smoother!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Nice! Especially after the app has loaded the first time, the difference that edit makes is quite clear. This does seem superior to awesomium.

  • JohnnySheffield You totally beat me in writing a walk through for node-webkit then you totally blew me away by writing a plugin! And quickly too!!! Great job!

    As far as my own tests I definitely prefer this to Awesomium. Which isn't bad; just better suited for running inside games rather than running games itself.

  • Wow, just spotted this thread. I was getting a bit worried about Awesomium but this looks like it could be excellent! Ashley what are your thoughts?

  • Nice! Especially after the app has loaded the first time, the difference that edit makes is quite clear. This does seem superior to awesomium.

    Well, actually there's no question is this superior to awseomium, it is much superior; Node-webkit is an app runtime based on Chromium and node.js. Awseomiuzm doesen't support this option.

    But, is it better suited for exporting C2 games to .exe?

    That's another question...

  • Will check this out soon to see if we can officially support it, just got a lot to do right now...

  • Made a tutorial on how to export. I hope it helps to make things easier!

  • Good news; i sorted the loading time, it loads instantly now!

    Problem was in the index.html, i edited line 59 as follows:

         <script src='jquery-1.7.1.min.js'>\x3C/script>

    C2 was actually trying to get jquery form ajax.googleapis.com, once you say to construct to look for jquery locally everything is much, much smoother!

    I'm glad it's good news, it makes me wonder if node-webkit is possible to do with XML and AJAX on local.

  • Found out a bug with resizing a fullscreen app. It only happens if you have full screen mode set to on in construct. It's not the entering and leaving fullscreen that breaks it, it's just quick and large resizing of the window that breaks it. and it doesn't break, it just "moves the position of the view"; pics for a better explanation!

    <img src="http://i.imgur.com/VrF1x.png" border="0" />

    <img src="http://i.imgur.com/LMeHt.png" border="0" />

  • would love that C2 supports this in the near future

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)