Velojet's Forum Posts

  • Samples? Thanks!

  • Right, my mention of index.html was in response to yours and Kyatric's responses. I was addressing the tool in specific, as it doesn't currently ask for the index.html contents.

    At that particular point in this discussion, I was not addressing the issue of creating a generalized plugin. I was just referring to the tool under discussion at the time.

    But shouldn't even "the tool under discussion at the time" be extracting the width and height from index.html?

    Two advantages (major goals for all software tools):

    1) Eliminate possible errors in user entry.

    2) Eliminate tedious handwork for users.

  • Ugotsta

    Sorry, I think I'm missing something here. I really don't understand why you say ...

    Right, the index.html has the canvas size, but I didn't want to ask users to paste in yet another piece of text.

    ... when the width and height can be easily extracted by a script from index.html, rather than having "to ask users to paste in yet another piece of text" ??

  • Right, the index.html has the canvas size, but I didn't want to ask users to paste in yet another piece of text.

    Definitely not my idea! I was trying to indicate that your plugin code should extract the width and height, without any user intervention.

    ... Yes, it could be automated as such ...

    Not only 'could', but 'should' :) Make it a real tool that relieves WP users of attending to all those details that can/should be attended to by a sufficiently smart plugin.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The type of plugin you're describing would likely allow for the uploading of any C2 exported project and would then make it easy to include the project in a WP page.

    Ugotsta

    Yes, that's exactly what I mean, and what qualifies as a WP plugin in my book.

    It seems to me that all the handwork required by your form/tool could/should be automated by a generalised WP plugin for C2 HTML5 exports. For example ...

    I've just updated the tool so it now asks for height and width and includes that in the output canvas. I couldn't easily regexp search the original c2runtime.js for height/width, especially since dimensions are per-layout, so I've just added it as a setting in the tool's page.

    ... you don't need to regexp search the original c2runtime.js for height/width (they're not there anyway), much less ask users to type them in - they can be taken from the C2 generated index.html (after all that's essentially what the c2runtime.js does).

  • I think I was unclear about what I was getting at. I meant that it would be best to have an exporter for C2 that exports a WordPress plugin, the same way this tool does. :)

    Ugotsta: I wonder if that's what you really mean? A WP plugin is an add-on that WP users only need to do a one-time install into their WP setup, like this Flash plugin that enables Flash movies (or in our case, C2 games) to be embedded into WP-generated posts/pages. Talk of having C2 export a WP plugin just doesn't make sense to me.

  • Wikipedia: 'KISS is an acronym for the design principle articulated by Kelly Johnson, Keep it simple, Stupid!. Variations include "keep it short and simple", "keep it simple sir", "keep it simple or be stupid", "keep it simple and straightforward" or "keep it simple and sincere."'

    But in any case, I prefer Einstein's "Things should be made as simple as possible, but not simpler." For 'Things', substitute 'Games'.

    'Keep it super simple' would seem to push simplicity beyond the point of true usefulness.

  • ... see they looking for this!

    I think that's reading much too much into the Google reply - it looks pretty much like a boilerplate reply to me.

    My advice - steer well clear of Google's clutches!

  • This one definitely gets my vote. Some individual lines cry out for comments (at least in my code ;) Glad it's on the todo list!

  • ... This can definitely be much better done as an exporter for Construct 2 though. Construct 2 could very easily export a plugin, the same way this tool outputs a plugin ...

    I'm afraid I can't see that myself. Since WordPress generates HTML pages and Construct 2 exports a HTML page, then surely it's better handled as a WordPress plugin that would attend to the details of integration. Any PHP coding, such as you mention, is definitely a job for a WordPress plugin rather than a Construct 2 exporter.

  • Most sensible comment following this post:

    <font face="Verdana, Arial, Helvetica, sans-serif"><font color=blue>They won't compete with native today, but I wouldn't bet on *never*. People end up looking quite silly making those sort of statements.</font></font>

  • This is actually quite cool. What would be really awesome is if there was a wordpress plugin to just upload the game to a post. I could see a lot of people using that feature

    Agreed. This is best handled from the WordPress side, as a WP plugin, rather than a C2 export option.

  • ...and the coolest thing is that, with some effort you should be able to do something like that with C2!

    ... with a LOT of effort - and most of that would be needed in implementing the server component, which can't be done in Construct 2, but which is the major coding challenge in a MMOG like BrowserQuest.

  • Good topic, exciting development, but this is surely misplaced in the 'Construct 2 general' area - and duplicates this thread which is in the 'Open Topic' area. Discussion best continued there?

  • 01lifeleft

    Thanks for the heads-up!

    Having the source code available on GitHub is a real bonus for those of us interested in multiplayer HTML5!