Live data from Hacker News

Rebuilding An HTML5 Game In Unity

smashingmagazine.com

21–28 of 28 posts

Re: Rebuilding An HTML5 Game In Unity

#22
post #3

I wonder if they could have just used CocoonJS, which is basically a reimplementation of WebView with better performance for games. But, anyway, yeah, it's well know the WebView on Android is a disaster. A top Facebook guy famously gave a key note at Android DevCon about why they switched to more native on mobile and said, "We don't hate the web [and HTML], we hate the webview." after going through countless bugs and…

Cocoon is primarily JS APIs. It does not support HTML and CSS stuff.

Re: Rebuilding An HTML5 Game In Unity

#23
post #3

I wonder if they could have just used CocoonJS, which is basically a reimplementation of WebView with better performance for games. But, anyway, yeah, it's well know the WebView on Android is a disaster. A top Facebook guy famously gave a key note at Android DevCon about why they switched to more native on mobile and said, "We don't hate the web [and HTML], we hate the webview." after going through countless bugs and…

Mozilla is working on turning Firefox Mobile into a HTML5 runtime for Android:

https://hacks.mozilla.org/2014/04/html-out-of-the-browser/

The idea is to rely on the Firefox runtime for your app, rather than the horrible buggy Webview, in order to make a more consistent experience across devices.

Re: Rebuilding An HTML5 Game In Unity

#24

Earlier quoted context omitted.

Isn't PhoneGap the same thing? What makes CocoonJS better?

Not 100% on this, but I don't think phone gap has a hardware accelerated canvas, and I'm pretty certain it doesn't support WebGL. The WebGL part doesn't really apply to this article, but it's important to note. Ludei built CocoonJS with games in mind. It's definitely not perfect, and somethings can be tricky to debug & figure out, but I think it's the better alternative out there. Me personally, I'm just not big on u…

I know you can trigger hardware acceleration with CSS transforms (a life saver), have not checked out how canvas handles that (i've made some small games using canvas on mobile). If HA exists for canvas on desktop (_webkit_), wouldn't it work in a iOS webview?

Re: Rebuilding An HTML5 Game In Unity

#25
post #17
post #15

Earlier quoted context omitted.

Another option is Phaser - A free, open source game engine similar to Impact: http://phaser.io/

I've been seeing Phaser a lot. Does anyone know of any commercially successful games built with these HTML5/JS engines? I understand success should have nothing to do w/ framework but certainly there are limitations/struggles of trying to build a non-native game. I'm basically trying to see if I should bet that mobile browsers will mature enough or if I should simply invest my time in learning native mobile dev

I've played around with Phaser, and I've played around with PhoneGap. Using what you know will always get your further faster than learning native, but there _could_ be performance issues depending on the game.

Re: Rebuilding An HTML5 Game In Unity

#26
post #9

Earlier quoted context omitted.

Why would Apple or Google build such a thing? They are already both "winning" the market in their own metrics. They both have huge numbers of developers and have little interest in building tools that allow developers to work in a cross platform way. MS built the HTML5/JS tools because they are behind and need to attract every developer possible.

Well because there are still more web developers out there than mobile (native) developers. So, in any case, it would help getting more apps in their store -> more happy users -> more money

Yes, but web technologies generally forbid you from doing anything remotely innovative because of the way they are designed.

Most "web apps" work worse than most apps we had two decades earlier, both in terms of design and performance. If you want people to pay for software on the app store, it helps if you put some effort into making your app responsive and exploiting the machine you are on. The only way to do this is with native applications.

Re: Rebuilding An HTML5 Game In Unity

#28
post #9

Earlier quoted context omitted.

Well because there are still more web developers out there than mobile (native) developers. So, in any case, it would help getting more apps in their store -> more happy users -> more money

Yes, but web technologies generally forbid you from doing anything remotely innovative because of the way they are designed. Most "web apps" work worse than most apps we had two decades earlier, both in terms of design and performance. If you want people to pay for software on the app store, it helps if you put some effort into making your app responsive and exploiting the machine you are on. The only way to do this…

And that's why I was talking about creating a framework that use javascript/html5 to create native apps, like winJS on windowsPhone
Post reply on HN