This talk presents the HTML5 game development framework Phaser which focuses on Desktop and Mobile, shows common tools to improve the development workflow and to wrap the game into apps for the various mobile stores.
4. What is Phaser?
• 2D framework
• Based on Pixi.js (rendering)
• WebGL with Canvas fallback
• Tailored for mobile web games
• Open Source <3
• Home: phaser.io
5. Who is it for?
• Aspiring and experienced game developers
• JavaScript developers
• Great for learning game development (Code)
6. What we did with it
Gurkenflieger: http://www.fischer-konserven.de
7. What we did with it
Sensigame: http://postauto.ch/sensigame
14. Load and display image
// create the game
var game = new Phaser.Game(
800, 600, Phaser.CANVAS, 'phaser-example‘,
{ preload: preload, create: create }
);
// preload all assets here
function preload() {
game.load.image('einstein', 'assets/pics/ra_einstein.png');
}
// attach everything to the stage here
function create() {
game.add.image(0, 0, 'einstein');
}
19. CocoonJS
• HTML & JavaScript wrapper
• Simulated browser without DOM
• OpenGL accelerated Canvas
Screencanvas+
• WebGL and Canvas rendering
20. • iOS, Android, Amazon, OUYA & more
• Launcher app for testing
• Simple setup and build process
• Extensions e.g. for Facebook sharing
• Demos
CocoonJS pros
21. • Bleeding edge
• Lack of documentation and support
• Buggy Phaser integration
(improvements coming with Phaser 2.0.6)
• Cloud compilation dependency (US server)
• Pricing model to be expected
• Costs for splash screen removal
CocoonJS cons
22. Ejecta
• Free and open source
• iOS only
• Tailored for ImpactJS
• One man show
23. Phaser is awesome!
• Free
• Open Source
• Great community
• Simple and accessible
(high abstraction, examples)
• Sophisticated and maintainable
(OOP)
24. Less pain – more fun!
• Takes the pain out of mobile web game dev:
– Scaling
– Audio
– Auto pausing
– Device rotation detection
• Thorough concept
• Quick result
• Development is fun!
25. What are you waiting for?
http://phaser.io
Thanks!
Michel Wacker
@starnut