Ugotsta's Recent Forum Activity

  • septeven, thanks so much for this one! I only just realized the regular Textbox in C2 isn't multiline-capable. I could get away with not going multiline, but your plugin just makes this much cooler. I'll be posting up the project I'm working on with this shortly, I hope.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't really use the object selection screen as often as other screens, myself. It wouldn't be beneficial for myself, workflow-wise, to change that aspect of the interface, though I do like your idea

    Ashley, I really can't thank you guys enough for including the font-face/size options. I generally don't request things, figuring if they're not already requested, chances are they won't be popular and won't get done. But that was one I really wanted to request.

    HotGod, thanks for requesting it!

  • Good to hear! :)

    Also, nice work with the new additions, though I think it would be nice to have an option to not go through the instructions.

    Just to mention too, I voted for your game at HBGames. When I first checked out the game, my first thought was that it should win the contest. Looks like it might!

  • Thanks for checking it out, anthonykojima! Really appreciate your feedback on it. A speed boost sounds like a great idea to me. I'll have a think about how integrating that and other possible powerups.

    I really like that Sinuous game, thanks for mentioning it. I tend to like relatively simple games with cool graphics and sound. It certainly looks like it could be made with C2, but looking at the page's source, I couldn't really tell. I took a look at the developer's site, they're simply awesome. Excellent JavaScript/web developers there. I think their canvas experiments would greatly benefit from C2 use if they're not already using it.

  • JohnnySix, that's a perfect remix for a boss level, I think. Excellent work!

  • I can't see that. It's just a matter of looking for the <canvas> tag in index.html and extracting the values from its width and height attributes - pretty standard regex stuff. And because C2, exporting to HTML5, is always going to generate a <canvas> tag, there's just no chance that it "could very easily get broken by future C2 versions".

    I don't think you're actually reading what I'm saying. I was referring to the tool's current method. That's it.

    Whether you think it ought to work differently or not is beside the point. The tool is very useful for a specific purpose, a commercial one no less, but a different purpose than what you're referring to.

    I'd be more than happy to see a plugin in the WP repo that provides easy and full integration with C2 projects. I just doubt I'd really have the time to pursue that just this moment, myself.

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

    I believe it would be great to auto-extract that and thus I believe it would be best done at the exporter level, where the data is more easily available. That's why I mentioned that.

    The tool at my site could do it, it's just that it would require either the user copy-pasting their index.html contents into the form, or it would require a very tricky regex search that could very easily get broken by future C2 versions.

    Given those two options, I instead went with a form input that asks for the canvas dimensions. This has an advantage in that I can use a bit of jQuery to handle additional features, like a fluid-width canvas, so a C2 project could resize within a responsive theme. I've actually experimented with that with success in Google Chrome, though the other browsers work strangely differently.

    That said, I've always held in deep consideration, making software that is as easy as possible for users to use. I agree those are excellent goals you listed and I always consider these things myself in projects I work on.

    However, I think I may have misunderstood you on one point. Are you actually suggesting that a WordPress plugin be made that, itself, exports a WordPress plugin?

    If so, I overlooked the possibility you were referring to that.

  • Hi everyone!

    Just came up with this idea for a game a few days ago and I've been laboring to get it completed. It's not quite what I initially imagined it as, but I'm totally happy with it thus far.

    The game is tentatively called "When Darkness Falls". I say tentatively because I'm not sure how it might clash with other book/band/media uses of the title.

    [TUBE]http://www.youtube.com/watch?v=OqE-mCVmEgI[/TUBE]

    It's a survival game that plays somewhat like the classic game, Missile Command. The goal is to keep the Darkness (which currently look like black worms crawling down the screen) from hitting the ground.

    You are the Light, combating the Darkness. The following methods are used to control the Light.

    MOUSE

    RIGHT-click moves you to the mouse position.

    LEFT-click triggers Light Blast, destroying all on-screen Darkness.

    TOUCH

    Touch anywhere on screen to move the Light to that position.

    Touch the SCORE to trigger Light Blast.

    Click or touch anywhere on-screen to initially start game. Likewise at the game's end,

    As the Darkness hits the ground, it pushes the darkened skies downward, eventually ending the game because darkness encompasses it all. The city buildings are pushed down and eventually destroyed when hit and when they're all destroyed, the game ends as well.

    This is a beta version (hosted through Dropbox currently), though I've tested it very thoroughly thus far and haven't noticed any bugs. No scoring system is yet implemented and I haven't yet tested Touch controls.

    Positive and negative feedback is more than welcomed!

    That said, click here to PLAY!

  • Very nice and thanks for mentioning that method and sharing the example! Sure seems like it'd help minimize code and optimize things.

    Would be especially helpful in constructing a Terraria-like game methinks. :)

  • 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.

    Kyatric, as I've been working on another game, I couldn't help but mention, in C2, dimensions are indeed on a per-layout basis. I'm rather sure they're not used (I've not tried varying layout dimensions), but they are there as parameters in the layout section.

  • Velojet, you mentioned earlier that index.html has the canvas dimensions, thus my response was addressing that.

    You mentioned previously...

    ... you don't need to regexp search the original c2runtime.js for height/width (they're not there anyway)

    As I also clarified, c2runtime.js does have the dimensions as well, so they can be extracted with a regex search, it's just a tougher one than getting the dimensions from the index.html file.

    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.

    I have to reiterate, there are uses for the tool's method, as in cases where a developer wants to release just their game and not have users download another plugin and have to upload their project file as well.

    What you're essentially saying is that this is "not a real tool". But the fact is that it is, and it exports a legitimate WordPress plugin, by definition. It's incredibly useful in specific cases, though obviously not for all cases, such as when someone wants to run their own WP-based arcade.

  • Right, the index.html has the canvas size, but I didn't want to ask users to paste in yet another piece of text. I've opted to ask for the height and width because there are some additions I'm planning to add regarding them, like a fluid wrapper, so the game could resize when used with a responsive theme.

    The height/width are indeed contained in c2runtime.js as well though. It's just a tough process of grabbing that data from the runtime as opposed to index.html.

    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.

    Yes, it could be automated as such, though the dynamic between these 2 plugin concepts is different. As I mentioned earlier, if a developer wanted to release their game, let's say it's just a simple tic-tac-toe game, to the WP community, they could package up their project with the tool and do so.

    This would be preferable to them giving instructions on installing the generalized WP C2 plugin and then downloading and installing their zipped project, for example. It's just a step easier for those wishing to use just that one game/app.

    Incidentally, I just threw together a WP plugin that allows for easy integration of Inform 7 games and it provides the sort of generalized support you're referring to here regarding C2. The thing is though, it doesn't currently support games with extra resources, like images and sounds. That actually is the tricky thing about this type of C2 plugin too.

    It takes quite a bit of consideration as to how to store such resources in WordPress. One would most likely use the Media Library to store resources (after unzipping process) and then store the locations of the relevant files in the database. I'm pretty sure that would be the optimal way to go about it, though I've not yet tackled that.

    EDIT: I only just realized these resources could be stored in sub-folders in the plugin folder, though I'm not so sure of the implications of that. The plugin would need to provide a robust uninstall process as well.

    If anyone's interested, the code behind the tool I made is available both in the javascript on the page as well as in the WP plugin code (PHP). Portions of it could come in very handy should anyone want to tackle this plugin idea themselves.

Ugotsta's avatar

Ugotsta

Member since 9 Sep, 2011

None one is following Ugotsta yet!

Connect with Ugotsta

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies