SlideShare a Scribd company logo
What Lies Ahead
     for HTML5?



Krzysztof Szafranek   @szafranek
Wooga GmbH
[ˈkʂɨʂtɔf ʂafranˈɛk]
                        Web application
                              &
                        game developer

                                         Wooga
                                    (Roche, Nokia)

Let me start with the most technically difficult part of the presentation.
How many of you would consider yourself developers?
How many of you have used HTML5?
I think the biggest
    mistake that we
    made, as a company,
    is betting too much
    on HTML5 as
    opposed to native...
    because it just
    wasn't there.
Last year’s quote that caused a lot of confusion
The language

 < >
Next iteration of the
        HTML language


Markup language for structuring and presenting content for the World Wide Web.
<video>



<audio>
<canvas>
New form elements
                                           <input type=date>




<input type=color>
How many of you have implemented a date picker?

Less code to improve site’s usability
Faster site
The buzzword



[5]
3D

WebGL
Demo: 3D race car
Media

video, audio
Screenshot: mobile YouTube
Offline

Screenshot: Twitter mobile
CSS3
Network

WebSockets, server-sent events, XHR2
Screenshot: Facebook chat
Devices




Microphone, camera
Demo: speech recognition
HTML5
               has already
                   won

If you have a website built in the last 3 years, most likely you’ve been using HTML5 already.
http://html5awesome.com/
mobile




[15]
Mobile doesn’t necessarily mean phone!
Black Friday
    30
                2012
   22.5


    15


    7.5                                      16.26
                        9.84                                              2011
                                                                          2012
     0
                   % of sales done through mobile


Source: http://www-01.ibm.com/software/marketing-solutions/benchmark-reports/
benchmark-2012-black-friday.pdf
Black Friday
 30
           2012
22.5


 15
                            24.04
 7.5       14.33
                                         2011
                                         2012
  0
        % of traffic coming from mobile
I think the biggest
mistake that we
made, as a company,
is betting too much
on HTML5 as
opposed to native...
because it just
wasn't there.
... we actually have more
people on a daily basis
using mobile Web
Facebook than we have
using our iOS or Android
apps combined.
So mobile Web is a big
thing for us.
Web or native?
Native
Native
Native

         Performance
Native
Native
Native

         Access to
         device
         features
Native
Native
Native

         Distribution
         through
         an app store
Native
Native
Native

         Payments
Native
Opportunity
   cost
m.guardian.co.uk
                                                                        Amazon
                                                           HTC          LG

                                                                        Sony
                                                            RIM
                           Apple

                                                          Samsung       Nokia




   3.3m daily page views
Apple 80%
Samsung 8%
RIM 6%
HTC 5%
Nokia 1%

http://www.guardian.co.uk/info/developer-blog/2012/dec/11/fragmented-world-mobile-
traffic-data
Discoverability




Discoverability in the AppStore,
over 700 000 apps.
Development
         cost




1.3 million Android devices is being activated every single day.
Source: http://techcrunch.com/2012/09/05/eric-schmidt-there-are-now-1-3-million-
android-device-activations-per-day/
Web
Web
Web

You already
     have it
Web
Web
Web

Cheaper to
     build
Web
Web




Open standards not controlled by one company
Web

      Vendor
independence

Open standards not controlled by one company
Web




Open standards not controlled by one company
Web
Web


Easy updates
Web
Web
Web


Future proof
Web
Discoverability
Payments
“Standards”
Hybrid
Hybrid

 Native    HTML5
wrapper    inside
Hybrid
Hybrid
Hybrid

               Access to
 App store
                device
distribution
               features
Hybrid
Hybrid
Hybrid

  Cross     Not
platform   native!
Hybrid
The story of



[30]
What lies ahead of HTML5_Ooop Munich 2013_Krzysztof Szafranek
Hybrid:
    HTML5+PhoneGap



Over 20x less than my current game in Objective C
Hybrid:
    HTML5+PhoneGap
    22k lines of JS

Over 20x less than my current game in Objective C
AppStore, worldwide

Released as open
source
github.com/wooga/Pocket-Island
JavaScript!
JavaScript!
•Development speed
JavaScript!
•Development speed
•Developer talent
JavaScript!
•Development speed
•Developer talent

•Community
“Write once,
run everywhere”
“Run everywhere” – either a lie or programs that worked equally badly everywhere
Sound, multitouch...



Sounds has been fixed in Safari 6, multitouch is being standardized right now.
Performance



12 FPS instead of 60
Conclusions


The web wasn’t the best platform for making mobile games in 2012.

[40]
“Every new
                                       generation brings
                                       radical new features,
                                       and the Web will
                                       always be behind on
                                       those. So the cutting
                                       edge is native.”

                                       Ian Hickson,
                                       editor
                                       of the HTML spec
Do you really need the cutting edge?
Are you willing to pay for it?
Games
Games
Games
Games
Games
Operating
 system!
WebAPI
  WebSMS
  WebTelephony
  Power Management
  Device Storage
  WebPayment
  Camera
  Calendar
  WebBluetooth
  Vibration API
  ...
https://wiki.mozilla.org/WebAPI
10 years
                                             from now



In many ways mobile web is where the desktop web was 15 years ago.
But it is catching up.
10 years
                                             from now

     The web & HTML:
     still around.
In many ways mobile web is where the desktop web was 15 years ago.
But it is catching up.
10 years
                                             from now

     App stores:
     not so sure.
In many ways mobile web is where the desktop web was 15 years ago.
But it is catching up.
10 years
                                             from now



In many ways mobile web is where the desktop web was 15 years ago.
But it is catching up.
Thank you!

www.szafranek.net   wooga.com/jobs
@szafranek
Photo credits:



   Crunchies2009

   John Kannenberg

       luisvilla

More Related Content

What lies ahead of HTML5_Ooop Munich 2013_Krzysztof Szafranek