26 points · by fiblye · 14y ago · 17 comments
This line discredited the whole article for me. Firstly, you're writing a video game inside a browser. This is like making a space ship that does surgery. You've got two complex systems working together of course there will be bugs.
Also why on earth would you expect the browser to play the game exactly the same over the course of time. Every update to iOS or android introduces new bugs into the system. I don't understand where you come of saying that an update should never break anything ever.
Canvas is massively different across browsers. Its your job to figure out the difference and account for it. The spec isn't even finalized yet.
I honestly expected the author to touch on some important issues like the fact that your game is naturally open source. But this seems more like a frustrated developer expecting too much from a platform.
My biggest problem is that you can have a completely working project that's literally broken overnight with a silent update. Operating system updates generally require the user to knowingly upgrade and there's always the implied risk of something strange happening. Developers can easily publicly announce incompatibilities with certain OS updates on their download page to warn new users, while an HTML5 game requires you to test every single release of every browser ever, and since everybody uses a slightly different version of a slightly different browser, it only takes one glitch for one person for your entire market to be scared off.
I never said I didn't anticipate things going wrong, but that when things do go wrong, it can completely out of control in the browser world. My development of games in HTML5/Javascript has been 98% pure bliss, but the thought of a single dangerous bug making it past the testing phase gives me nightmares. I knew what I was getting into and it was primarily a test of "can I do it?", but it doesn't mean I can't complain. ;)
Small correction, your source is readable, but it isn't "open source" - "open source" means available under and open source license (which your code is not, unless you actually do that).
Your source also doesn't need to be readable - you can obfuscate it, to the point where it is as readable as native binaries - disassembleable in theory, but only by experts.
That said, I enjoy developing for the platform and think the huge benefit in audience size for social games makes life on the bleeding edge worth the pain. These are the early days. It'll settle down.
Apparantly there are issues with looping (http://www.schillmania.com/projects/soundmanager2/demo/api/) but it points to (http://www.flickr.com/photos/schill/4499319436/) as a way to fix sound loops.
Regarding other technical problems: I've had that issue too with Chrome beta, using csstransforms caused my textboxes to be unclickable(but still tab-able). My solution was to downgrade to the normal Chrome version and hoped it'll be fixed by the time it hit stable.
Overall, sure, browsers have bugs and it is a tricky platform because of that. But, it also reaches far more people than any other platform. That's a tradeoff, if it makes sense for you, make a game for it, if not then don't.
Aren't browser specific API's the kind of thing that led to IE becoming such a hated piece of software?
DISCLAIMER: I work for an html5/javascript gaming company.
The only conceivable time that I could imagine it happening is when my phone does a major version update, which happens a maximum of once in the entire phone's lifetime, is very visible to me (it would be clear to me that it isn't completely the developer's fault), meanwhile chrome updates every week silently. If any website works one day and not the next I would always assume the developers had pushed a bad build.
OS shipping updates causing games to break is a pretty rare thing, several orders of magnitude less likely to occur than a browser shipping with a change in behavior of an HTML5 feature.
The risk clearly does exist everywhere, but its mostly a solved problem on Windows, and it's certainly a solved problem on Xbox. It's a monthly issue in browsers.
Ultimately you have to factor in not only the quality of the platform, but also the responsiveness of the company and devs who maintain the platform. And the good news is, Google and Mozilla are usually pretty responsive. But platforms have to move slow to prevent destabilizing their other citizens, and sometimes your project gets caught in the middle. So it goes.