Upload
carsten-sandtner
View
1.382
Download
4
Embed Size (px)
Citation preview
It’s me, Carsten!
Head of Development @ //mediaman
Ex-Zynga
Loves everything about Web and open standards!
Twitter: @casarock
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
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)
Phaser
http://phaser.io
WebGL & Canvas, Preloader, Physics, Sprites, Groups, Animation, Particles,
Camera, Input, Sound, Tilemaps, Device Scaling, Plugin System
HTML5 Canvas on mobile…
https://www.flickr.com/photos/elycefeliz/5000964458/
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
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
http://html5gameengine.com/
http://opengameart.org/
http://orteil.dashnet.org/gamegen
http://gamedevjsweekly.com/
http://gameprogrammingpatterns.com/contents.html
http://cocoon.io/