Live data from Hacker News

Rebuilding An HTML5 Game In Unity

smashingmagazine.com

1–10 of 28 posts

Re: Rebuilding An HTML5 Game In Unity

#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 performance problems they encountered trying to do HTML on Android.

> A mechanism such as CSS to style items generated through code would be welcome.

Maybe they didn't know, but this is mostly ameliorated by just having an example object setup however you like in the Unity Editor and then in your code you always just clone the example and place it instead of creating some new object. The example is basically your "style" and even non-coders on the team are usually fine with tweaking it.

Re: Rebuilding An HTML5 Game In Unity

#4
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…

At this point my question is the following: why on android and ios we have not a javascript/html5 -> native framework?

I mean, the guys of windows phone made it. It is awesome and with great performance... why android and ios that came up in the market way before have still not implemented it?

Re: Rebuilding An HTML5 Game In Unity

#5
My experience with Unity has been pretty solid too. I was incredibly surprised as to how easy it was to get my game prototypes running on pretty much everything.

My major gripe, much like the author's, is the Asset Store. It's full of garbage with no real demo or refund system. There's also a lot of assets that were built with old versions of Unity with no real way to identify them as such. This especially sucks for 2D games, as the Unity2D system is pretty new.

There's also no great GUI system built into the framework yet, so you're stuck buying nGUI or dfGUI.

Re: Rebuilding An HTML5 Game In Unity

#6
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…

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

Re: Rebuilding An HTML5 Game In Unity

#7
post #4
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…

At this point my question is the following: why on android and ios we have not a javascript/html5 -> native framework? I mean, the guys of windows phone made it. It is awesome and with great performance... why android and ios that came up in the market way before have still not implemented it?

HTML/JS apps subvert the Android and iOS walled gardens, so Google and Apple have no incentive to make things work better. It's no coincidence that there's still no straightforward way to deploy Chrome Web Store apps (either in HTML/JS or Native Client) to Android phones.

Microsoft made HTML/JS a first class platform for Windows 8 and Windows Mobile, so they don't have that problem - as long as you put your browser app inside their walled garden (so it goes on the store), they don't mind at all that it's a browser app.

Re: Rebuilding An HTML5 Game In Unity

#8
post #4
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…

At this point my question is the following: why on android and ios we have not a javascript/html5 -> native framework? I mean, the guys of windows phone made it. It is awesome and with great performance... why android and ios that came up in the market way before have still not implemented it?

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.

Re: Rebuilding An HTML5 Game In Unity

#9
post #4

Earlier quoted context omitted.

At this point my question is the following: why on android and ios we have not a javascript/html5 -> native framework? I mean, the guys of windows phone made it. It is awesome and with great performance... why android and ios that came up in the market way before have still not implemented it?

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

Re: Rebuilding An HTML5 Game In Unity

#10
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

They don't want more apps, they want more exclusive apps. The more exclusive apps the harder the lockin to the platform. Apple and Google both remember mid nineties Microsoft. Lock users in and ride that to dominance. It's seems like something I should be furious about but it's hard to angry when it helps to line my own pockets with cash. I can and have written native apps for both iOS and Android so that makes me very much in demand. I'd prefer an open web to win out but IMO native apps still give a much better user experience.
Post reply on HN