Comments on: Flash to HTML5: Gridshock Remade https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/ Archive of older blog posts written by Josh Tynjala about Flash, Flex, and ActionScript Wed, 26 Jun 2013 02:52:46 +0000 hourly 1 https://wordpress.org/?v=4.9.9 By: Bernhard https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-46839 Sun, 20 May 2012 13:50:14 +0000 http://joshblog.net/?p=1072#comment-46839 HI, very nice writing about HTML5 and the comparison to Flash. Maybe you are interessted in the thing i have done over the last week. I ported most of the Flash Display List (and Sound classes + more to come) to the new programming language Dart, which compiles to JavaScript. If you are an ActionScript programmer, you will ike Dart very much.

Check it out here: http://code.google.com/p/dartflash/

There you can find a link to a game which was ported from Flash to HTML5, using Dart and the library i did.

]]>
By: Marc https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-43296 Mon, 23 Apr 2012 19:42:44 +0000 http://joshblog.net/?p=1072#comment-43296 Regarding re-rendering when x & y change. I think, though I’m not 100% sure, calling .attr({x: 150, y: 120}) will set both x and y before re-rendering.

]]>
By: Josh Tynjala https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-32162 Sat, 11 Feb 2012 00:34:40 +0000 http://joshblog.net/?p=1072#comment-32162 Keith, at the time I put this together, Playtomic was planning to charge per casual game (with one free, as I mentioned above) and they had special pricing for social games. It looks like they’ve changed their plans.

Thanks for letting me know that the game isn’t working. Playtomic is actually returning a 404 for the older version of their JavaScript API. Lovely.

]]>
By: Keith Weatherby II https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-32158 Sat, 11 Feb 2012 00:30:05 +0000 http://joshblog.net/?p=1072#comment-32158 Something odd, I can’t play your game at all. Not to mention that all of Playtomic stuff is supposed to be free. http://www.playtomic.com/pricing

In any case interesting read.

]]>
By: Josh Tynjala https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-26487 Fri, 30 Dec 2011 18:48:06 +0000 http://joshblog.net/?p=1072#comment-26487 No, I haven’t made the full unminified source available. Moreover, I was using a pretty early version of Crafty, and things have changed a lot since then.

]]>
By: craftyjslearner https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-26397 Fri, 30 Dec 2011 05:33:09 +0000 http://joshblog.net/?p=1072#comment-26397 I want to study the code further. Is there a way that I can download all the associated files without minification?

]]>
By: Josh Tynjala https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-25018 Wed, 21 Dec 2011 15:50:17 +0000 http://joshblog.net/?p=1072#comment-25018 igniz17173, that’s what I did too. At least there’s a hack like that, but it would be nice to see something better in the future.

]]>
By: igniz17173 https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-24997 Wed, 21 Dec 2011 12:42:55 +0000 http://joshblog.net/?p=1072#comment-24997 I faced the same problem with audio too. But u can actually do a trick to allow multiple playback of that audio file.

Create more than 1 buffer of the sound file whenever u play an effect sound & push into an array of playing sounds. Remove the buffer from the array when it is played completely. Remember to remove any reference to the buffer too to allow for GC.

]]>
By: Louis Stowasser https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-2687 Sat, 22 Jan 2011 06:29:22 +0000 http://joshblog.net/?p=1072#comment-2687 Nice article. Please don’t hesitate to email me about any changes to Crafty you think are important. All of these points will be turned into issues that I can hopefully fix by v0.3. Any others you can think of would be greatly appreciated.

Great game!

]]>
By: DougTI https://joshblog.net/2011/01/11/flash-to-html5-javascript-game-conversion-gridshock/#comment-2536 Thu, 20 Jan 2011 18:48:35 +0000 http://joshblog.net/?p=1072#comment-2536 Josh: this is very helpful. Thank you for your openness!

]]>