- HTML5 Canvas allows for drawing and animation capabilities for building games directly in browsers
- It has been standardized and is supported across browsers, enabling cross-platform games
- While desktop games work well with HTML5 Canvas, mobile games face challenges like lower memory limits, different screen sizes and resolutions, and performance issues
- Frameworks like Phaser, Impact and libraries like CocoonJS aim to address these challenges and allow building games using HTML5 that run cross-platform on desktop and mobile browsers
5. 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!
8. 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)
49. Monetization
• App Stores!
• IAP
• Cordova and CocoonJS have
plugins for: Google Play, iTunes, …
• Advertisement
• CocoonJS has Plugins
• Add your own implementation