SlideShare a Scribd company logo
HTML5 Games
for web and mobile!
@casarock
It’s me, Carsten!
Head of Development @ //mediaman
Ex-Zynga
Loves everything about Web and open
standards!
Twitter: @casarock
HTML5 Games?
HTML5 Canvas
https://www.flickr.com/photos/helico/416249293/
Short history
• Invented by Apple for their own WebKit component in OS X (~2004)
• adopted by Mozilla (2005), Opera (2006)
• standardized by the WHATWG
• now standardized by W3C!
HTML5 Canvas
https://www.flickr.com/photos/deepcaves/14567139834/
• Drawing Lines, Pixel, Rects
• Bézier curves, Arcs
• Gradients
• scaling, positioning, rotating,
cropping of images
• render text
• moving, rotating, scaling of objects
and object groups
Ok, but Games?
Request Animation
Frame!
function step() {
// Do serious painting stuff!
window.requestAnimationFrame(step);
}
window.requestAnimationFrame(step);
• Tell browser you want to call a method
(for animation)
• usually being called every 16,67ms
(60FPS)
Simple animation
LIVE DEMOS!
HTML5 Games for Web & Mobile
Hardware
accelerated
• most Browsers have hardware
acceleration turned on by default
3D with WebGL
HTML5 Games for Web & Mobile
Writing an own Engine?
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
Phaser
http://phaser.io
WebGL & Canvas, Preloader, Physics,
Sprites, Groups, Animation, Particles,
Camera, Input, Sound, Tilemaps,
Device Scaling, Plugin System
Phaser
LIVE DEMOS!
Canvas on Desktop seems to be
ready for Games!
And mobile?
HTML5 Canvas on
mobile…
https://www.flickr.com/photos/elycefeliz/5000964458/
Why?
• Memory limits
• App Stores… :(
• …
–Carsten Sandtner
„HTML5 Games für Web and Mobile"
But there is hope!
HTML5 Games for Web & Mobile
http://impactjs.com/ejecta
https://crosswalk-project.org/
Intel® XDK
https://software.intel.com/de-de/intel-xdk
http://cocoon.io/
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
Example
Summary (so far)…
Summary
• Desktop Games ✓
• Mobile Games ✓
• „native“ ✓
• Cross Platform?
• Monetization?
Challenges
Screen Sizes
320x480
Phone
640x960
Phone
768x1024
Tablet
800x1280
Tablet
800x1280
Desktop
Android
Deal with resolutions
• dedicated assets
• logo_320.png vs. logo_640png
• Scaling
• Problem: aspect ratio.
• Problem: up scaling.
• Combination of both!
Example: Landscape vs. Portrait
Scaling assets
down
up
Assets: Kenney! http://www.kenney.nl
There is more than screen sizes!
HTML5 Games for Web & Mobile
Performance
https://www.flickr.com/photos/chatterstone/16321128021/
Monetization
• App Stores!
• IAP
• Cordova and CocoonJS have
plugins for: Google Play, iTunes, …
• Advertisement
• CocoonJS has Plugins
• Add your own implementation
Some Examples!
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
HTML5 Games for Web & Mobile
Links, engines etc.
http://phaser.io
http://gamemechanicexplorer.com/
http://www.html5gamedevs.com/
http://html5gameengine.com/
http://opengameart.org/
http://orteil.dashnet.org/gamegen
http://gamedevjsweekly.com/
http://gameprogrammingpatterns.com/contents.html
http://cocoon.io/
Twitter: @casarock
http://casarock.github.io

More Related Content

PPTX
WebXR - Introduction and Workshop
PDF
Startup Weekend & LocomotiveCMS (In Chinese)
PDF
Building JavaScript Apps for Force.com with EmberJS
PDF
Famo.us introduction
PPTX
Mobayle presentation
PPTX
Robby Ingebretsen - Get your game on: HTML5 for game building
PPTX
What You Need to Know About Google App Indexing - SMX West 2016
PDF
Real Benefits of HTML5 for Games (MS Campfire, 2012)
WebXR - Introduction and Workshop
Startup Weekend & LocomotiveCMS (In Chinese)
Building JavaScript Apps for Force.com with EmberJS
Famo.us introduction
Mobayle presentation
Robby Ingebretsen - Get your game on: HTML5 for game building
What You Need to Know About Google App Indexing - SMX West 2016
Real Benefits of HTML5 for Games (MS Campfire, 2012)

Similar to HTML5 Games for Web & Mobile (20)

PDF
HTML5 & JavaScript Games
PDF
W3C HTML5 KIG-The complete guide to building html5 games
PDF
HTML5 Games Status and issues
PDF
Making Native Browser Games in The Modern Age
PDF
Making Native Browser Games in the Modern Age
PPTX
Presentation3
PPTX
A Holistic Approach to HTML5 Game Design & Development
PPTX
Html5 Game Development with Canvas
PPTX
HTML5_Games_Ecosystem_Jan2013
ODP
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
PDF
html5
PPTX
HTML5 Games Ecosystem
PDF
One codebase, multiple platforms; Using HTML5/js for game dev
PPTX
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
PDF
Korea linuxforum2014 html5game-sangseoklim
KEY
Seattle javascript game development - Overview
PDF
Ready to Play: JavaScript / HTML5 Game Development
PPTX
Game Over - HTML5 Games
ODP
HTML5 Game Development frameworks overview
PDF
Intro to HTML5
HTML5 & JavaScript Games
W3C HTML5 KIG-The complete guide to building html5 games
HTML5 Games Status and issues
Making Native Browser Games in The Modern Age
Making Native Browser Games in the Modern Age
Presentation3
A Holistic Approach to HTML5 Game Design & Development
Html5 Game Development with Canvas
HTML5_Games_Ecosystem_Jan2013
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
html5
HTML5 Games Ecosystem
One codebase, multiple platforms; Using HTML5/js for game dev
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Korea linuxforum2014 html5game-sangseoklim
Seattle javascript game development - Overview
Ready to Play: JavaScript / HTML5 Game Development
Game Over - HTML5 Games
HTML5 Game Development frameworks overview
Intro to HTML5
Ad

More from Carsten Sandtner (16)

PDF
State of Web APIs 2017
PDF
Headless in the CMS
PDF
Always on! Or not?
PDF
Night Watch with QA
PDF
Always on! ... or not?
PDF
WebVR - MobileTechCon Berlin 2016
PDF
Evolution der Web Entwicklung
PDF
WebVR - JAX 2016
PDF
What is responsive - and do I need it?
PDF
Web apis JAX 2015 - Mainz
PDF
Web APIs - Mobiletech Conference 2015
PDF
Web APIs – expand what the Web can do
PDF
Firefox OS - A (mobile) Web Developers dream - DWX14
PDF
Firefox OS - A (web) developers dream - muxCamp 2014
PDF
Mozilla Brick - Frontend Rhein-Main June 2014
PDF
Traceur - Javascript.next - Now! RheinmainJS April 14th
State of Web APIs 2017
Headless in the CMS
Always on! Or not?
Night Watch with QA
Always on! ... or not?
WebVR - MobileTechCon Berlin 2016
Evolution der Web Entwicklung
WebVR - JAX 2016
What is responsive - and do I need it?
Web apis JAX 2015 - Mainz
Web APIs - Mobiletech Conference 2015
Web APIs – expand what the Web can do
Firefox OS - A (mobile) Web Developers dream - DWX14
Firefox OS - A (web) developers dream - muxCamp 2014
Mozilla Brick - Frontend Rhein-Main June 2014
Traceur - Javascript.next - Now! RheinmainJS April 14th
Ad

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Encapsulation theory and applications.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf
Spectral efficient network and resource selection model in 5G networks
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Understanding_Digital_Forensics_Presentation.pptx
Digital-Transformation-Roadmap-for-Companies.pptx
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Encapsulation theory and applications.pdf
NewMind AI Weekly Chronicles - August'25 Week I
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Dropbox Q2 2025 Financial Results & Investor Presentation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Encapsulation_ Review paper, used for researhc scholars

HTML5 Games for Web & Mobile