This book by Packt Publishing has a very promising title. It pulls the reader in quickly with an exciting opening paragraph that reads:
“HTML5 promises to be the hot new platform for online games. HTML5 games work on computers, smartphones, and tablets – including iPhones and iPads. Be one of the first developers to build HTML5 games today and be ready for tomorrow!”
That’s cool! You mean it’s actually possible to build a game that works well in the browser and on an iPad? Well, surprisingly enough, according to this book the answer is NO. Out of the 9 code examples, only one of them even rendered on my iPad 2. The game that worked on my iPad was technically done in CSS3 and also looks very bad on my Android. The book has some great examples and if you’re looking to build HTML5 games for desktop browsers, I would recommend it. If you’re looking to build HTML5 games for mobile devices, stay away from this one.
What the publisher and many people fail to realize is that HTML5 does NOT equal mobile. I haven’t seen a single HTML5 page that’s looked good across devices. Not a single one. SlideShare recently converted their entire site to “HTML5″ – according to the marketing team. A quick look at the doctype on the page reveals… wait for it, XHTML! Marketers are sucking the life out of a buzzword and lying through the teeth about it.
When every example of HTML5 either has horrible cross browser support, doesn’t render on mobile devices or isn’t actually HTML5, I wonder what the web has come to. Has everyone decided it’s just easier to lie to clients, the general public and fellow developers? Or are the stakeholders so blind to technology that they insist on something that doesn’t even exist? Is it really so terrible to maintain a mobile version of your website along side a desktop version?
Rather than trying to make radical predictions and promises about the future of the web, maybe we should try educating clients about new technologies. Instead of shoving a round peg into a square hole, let’s create the solution that best fits the business needs. Lying today is only going to give technology a bad reputation in the future and hurt clients in the long run. It’s sad when an otherwise good book is poisoned by lies from the marketing team.
Here is a link to the book:
HTML5 Games Development by Example