SlideShare a Scribd company logo
1 of 26
Making HTML5 Games with
Michel Wacker
CEO Gentle Troll Entertainment GmbH
@starnut
Image http://phaser.io
Topics of this talk
• What is Phaser?
• Who is it for?
• What does it have to offer?
• Examples
• Resources
• Tools & Workflow
• Distribution
What is Phaser?
„Desktop and
Mobile HTML5
game framework“
Created by
Inspired by
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
Who is it for?
• Aspiring and experienced game developers
• JavaScript developers
• Great for learning game development (Code)
What we did with it
Gurkenflieger: http://www.fischer-konserven.de
What we did with it
Sensigame: http://postauto.ch/sensigame
„Yeah, but I hate code!“
Game Maker: Studio
What you‘ll need: Text Editor
Sublime
What you‘ll need: Local server
XAMPP
MAMP
(OSX only)
Features
• Boiled down setup & preload mechanism
• Common game objects: image, sprite, group
• Sprite sheets & texture atlases
• TileSprites & collision maps
• Bitmap fonts
• Physics: P2 (polygons), Arcade (AABB) a.o.
• Particles, tinting, WebGL shaders...
Resources
• Detailed documentation
• > 320 examples (community driven)
• Large helpful community
• Lots tutorials on the web
• Even free books
Game Mechanic Explorer
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');
}
Workflow: Art
Flash:
Animation
Illustrator:
Design
Texture Atlas
Sprite Sheet
PNG sequence
Texture Packer
PNGGauntlet (Win)
ImageOptim (OSX)
Worflow Art: Bitmap Fonts
Free web tool: Littera
(buggy output for FireFox)
Bitmap Font
Generator
(Windows) bmGlyph (OSX)
Workflow: Code
• Copy
• Concat
• Uglify / Minify
• FTP deploy
• Zip
• ...
NodeJS Taskrunner
Distribution
CocoonJS
• HTML & JavaScript wrapper
• Simulated browser without DOM
• OpenGL accelerated Canvas
Screencanvas+
• WebGL and Canvas rendering
• iOS, Android, Amazon, OUYA & more
• Launcher app for testing
• Simple setup and build process
• Extensions e.g. for Facebook sharing
• Demos
CocoonJS pros
• 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
Ejecta
• Free and open source
• iOS only
• Tailored for ImpactJS
• One man show
Phaser is awesome!
• Free
• Open Source
• Great community
• Simple and accessible
(high abstraction, examples)
• Sophisticated and maintainable
(OOP)
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!
What are you waiting for?
http://phaser.io
Thanks!
Michel Wacker
@starnut
Links
- Phaser: http://phaser.io
- Construct 2: https://www.scirra.com/construct2
- Game Maker: Studio https://www.yoyogames.com/studio
- Sublime: http://www.sublimetext.com/
- WebStorm: http://www.jetbrains.com/webstorm/
- XAMPP: https://www.apachefriends.org/de/index.html
- MAMP: http://www.mamp.info/
- Phaser docs: http://docs.phaser.io/index.html
- Phaser examples: http://examples.phaser.io/
- HTML5 Game Devs Forum: http://www.html5gamedevs.com/
- Game Mechanic Explorer: http://gamemechanicexplorer.com/
- Free Phaser Book: https://leanpub.com/html5shootemupinanafternoon
- TexturePacker: http://impactjs.com/ejecta
- ImageOptim (OSX): https://imageoptim.com/
- PNGGauntlet (Windows): http://pnggauntlet.com/
- Bitmap Font Generator: http://www.angelcode.com/products/bmfont/
- bmGlyph (OSX): http://www.bmglyph.com/
- NodeJS: http://nodejs.org
- Littera (Web): http://kvazars.com/littera/
- Grunt: http://gruntjs.com/
- gulp.js: http://gulpjs.com/
- CocoonJS: https://www.ludei.com/cocoonjs/
- Ejecta: http://impactjs.com/ejecta

More Related Content

What's hot

W3C HTML5 KIG-The near future of the web platform
 W3C HTML5 KIG-The near future of the web platform W3C HTML5 KIG-The near future of the web platform
W3C HTML5 KIG-The near future of the web platform
Changhwan Yi
 
East Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
East Coast DevCon 2014: The Slate UI Framework - Architecture & ToolsEast Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
East Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
Gerke Max Preussner
 
Using Ubuntu
Using UbuntuUsing Ubuntu
Using Ubuntu
rr1955
 

What's hot (19)

W3C HTML5 KIG-The near future of the web platform
 W3C HTML5 KIG-The near future of the web platform W3C HTML5 KIG-The near future of the web platform
W3C HTML5 KIG-The near future of the web platform
 
East Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
East Coast DevCon 2014: The Slate UI Framework - Architecture & ToolsEast Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
East Coast DevCon 2014: The Slate UI Framework - Architecture & Tools
 
Albion Online - Software Architecture of an MMO (talk at Quo Vadis 2016, Berlin)
Albion Online - Software Architecture of an MMO (talk at Quo Vadis 2016, Berlin)Albion Online - Software Architecture of an MMO (talk at Quo Vadis 2016, Berlin)
Albion Online - Software Architecture of an MMO (talk at Quo Vadis 2016, Berlin)
 
FMX 2017: Extending Unreal Engine 4 with Plug-ins (Master Class)
FMX 2017: Extending Unreal Engine 4 with Plug-ins (Master Class)FMX 2017: Extending Unreal Engine 4 with Plug-ins (Master Class)
FMX 2017: Extending Unreal Engine 4 with Plug-ins (Master Class)
 
Teacher Training Workshop - Game Development with Phaser
Teacher Training Workshop  - Game Development with PhaserTeacher Training Workshop  - Game Development with Phaser
Teacher Training Workshop - Game Development with Phaser
 
Absolutist: Porting to major platforms within a minute
Absolutist: Porting to major platforms within a minuteAbsolutist: Porting to major platforms within a minute
Absolutist: Porting to major platforms within a minute
 
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
Albion Online - A Cross-Platform MMO (Unite Europe 2016, Amsterdam)
 
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
【Unite 2017 Tokyo】インスタンシングを用いた美麗なグラフィックの実現方法
 
Rapid Game Development with RUby and Gosu – Ruby Manor 4
Rapid Game Development with RUby and Gosu – Ruby Manor 4Rapid Game Development with RUby and Gosu – Ruby Manor 4
Rapid Game Development with RUby and Gosu – Ruby Manor 4
 
Using Ubuntu
Using UbuntuUsing Ubuntu
Using Ubuntu
 
From Web to Mobile with Stage 3D
From Web to Mobile with Stage 3DFrom Web to Mobile with Stage 3D
From Web to Mobile with Stage 3D
 
West Coast DevCon 2014: The Slate UI Framework (Part 2) - Game UI & Unreal Mo...
West Coast DevCon 2014: The Slate UI Framework (Part 2) - Game UI & Unreal Mo...West Coast DevCon 2014: The Slate UI Framework (Part 2) - Game UI & Unreal Mo...
West Coast DevCon 2014: The Slate UI Framework (Part 2) - Game UI & Unreal Mo...
 
East Coast DevCon 2014: Programming in UE4 - A Quick Orientation for Coders
East Coast DevCon 2014: Programming in UE4 - A Quick Orientation for CodersEast Coast DevCon 2014: Programming in UE4 - A Quick Orientation for Coders
East Coast DevCon 2014: Programming in UE4 - A Quick Orientation for Coders
 
GDCE 2015: Blueprint Components to C++
GDCE 2015: Blueprint Components to C++GDCE 2015: Blueprint Components to C++
GDCE 2015: Blueprint Components to C++
 
【Unite 2017 Tokyo】VRコンテンツを気持ちよくプレイさせるためのUI実装ガイド
【Unite 2017 Tokyo】VRコンテンツを気持ちよくプレイさせるためのUI実装ガイド【Unite 2017 Tokyo】VRコンテンツを気持ちよくプレイさせるためのUI実装ガイド
【Unite 2017 Tokyo】VRコンテンツを気持ちよくプレイさせるためのUI実装ガイド
 
Designing and Testing Firefox 4
Designing and Testing Firefox 4Designing and Testing Firefox 4
Designing and Testing Firefox 4
 
2011 05-jszurich
2011 05-jszurich2011 05-jszurich
2011 05-jszurich
 
OGDC2013_ Spine Animation_ Mr Alviss Ha
OGDC2013_ Spine Animation_ Mr Alviss HaOGDC2013_ Spine Animation_ Mr Alviss Ha
OGDC2013_ Spine Animation_ Mr Alviss Ha
 
Adventures in cross platform ConnectJS / TiConnect 2014
Adventures in cross platform ConnectJS / TiConnect 2014Adventures in cross platform ConnectJS / TiConnect 2014
Adventures in cross platform ConnectJS / TiConnect 2014
 

Viewers also liked

La ecuación de Batman
La ecuación de BatmanLa ecuación de Batman
La ecuación de Batman
Jesus Garcia
 
Lasertron lt 12 vs zone nexus fec
Lasertron lt 12 vs zone nexus fecLasertron lt 12 vs zone nexus fec
Lasertron lt 12 vs zone nexus fec
ejeffers2010
 

Viewers also liked (20)

Juice up your game feel!
Juice up your game feel!Juice up your game feel!
Juice up your game feel!
 
Keep your game in the fun zone - Designing an AI Director
Keep your game in the fun zone - Designing an AI DirectorKeep your game in the fun zone - Designing an AI Director
Keep your game in the fun zone - Designing an AI Director
 
Postmortem: "Spellcreepers"
Postmortem: "Spellcreepers"Postmortem: "Spellcreepers"
Postmortem: "Spellcreepers"
 
CipSoft Innovations-Prozess
CipSoft Innovations-ProzessCipSoft Innovations-Prozess
CipSoft Innovations-Prozess
 
Introduction to HTML5 game development (with Phaser)
Introduction to HTML5 game development (with Phaser)Introduction to HTML5 game development (with Phaser)
Introduction to HTML5 game development (with Phaser)
 
Games Bavaria - Spieleentwickler Förderung in Bayern
Games Bavaria - Spieleentwickler Förderung in BayernGames Bavaria - Spieleentwickler Förderung in Bayern
Games Bavaria - Spieleentwickler Förderung in Bayern
 
Eye Tracking Studie in Amnesia the Dark Decent
Eye Tracking Studie in Amnesia the Dark DecentEye Tracking Studie in Amnesia the Dark Decent
Eye Tracking Studie in Amnesia the Dark Decent
 
Amazon Web Services
Amazon Web ServicesAmazon Web Services
Amazon Web Services
 
VlbgWebDev Mai 2015 - Game Design PT 1
VlbgWebDev Mai 2015 - Game Design PT 1VlbgWebDev Mai 2015 - Game Design PT 1
VlbgWebDev Mai 2015 - Game Design PT 1
 
硅谷早期投资趋势
硅谷早期投资趋势硅谷早期投资趋势
硅谷早期投资趋势
 
Marketing 360 - 2011
Marketing 360 - 2011Marketing 360 - 2011
Marketing 360 - 2011
 
Flappy Bird Game Dev by Phaser Framework
Flappy Bird Game Dev by Phaser FrameworkFlappy Bird Game Dev by Phaser Framework
Flappy Bird Game Dev by Phaser Framework
 
Making Native Browser Games in The Modern Age
Making Native Browser Games in The Modern AgeMaking Native Browser Games in The Modern Age
Making Native Browser Games in The Modern Age
 
Html5 game development
Html5 game developmentHtml5 game development
Html5 game development
 
La ecuación de Batman
La ecuación de BatmanLa ecuación de Batman
La ecuación de Batman
 
HTML5 Game Development frameworks overview
HTML5 Game Development frameworks overviewHTML5 Game Development frameworks overview
HTML5 Game Development frameworks overview
 
Lasertron lt 12 vs zone nexus fec
Lasertron lt 12 vs zone nexus fecLasertron lt 12 vs zone nexus fec
Lasertron lt 12 vs zone nexus fec
 
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
 
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
Multi-platform Compatibility of HTML5 by developing simple HTML5 based game(M...
 
我的敏捷测试宣言(Agile Testing Manifesto)
我的敏捷测试宣言(Agile Testing Manifesto)我的敏捷测试宣言(Agile Testing Manifesto)
我的敏捷测试宣言(Agile Testing Manifesto)
 

Similar to Making HTML5 Games with Phaser

Phonegap for Engineers
Phonegap for EngineersPhonegap for Engineers
Phonegap for Engineers
Brian LeRoux
 
Adobe and the Flash Gaming Landscape
Adobe and the Flash Gaming LandscapeAdobe and the Flash Gaming Landscape
Adobe and the Flash Gaming Landscape
Joseph Labrecque
 

Similar to Making HTML5 Games with Phaser (20)

Casual and Social Games with Unity
Casual and Social Games with UnityCasual and Social Games with Unity
Casual and Social Games with Unity
 
Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011Delta Engine @ CeBit 2011
Delta Engine @ CeBit 2011
 
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
Developing applications and games in Unity engine - Matej Jariabka, Rudolf Ka...
 
Phonegap for Engineers
Phonegap for EngineersPhonegap for Engineers
Phonegap for Engineers
 
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработкиСергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
 
iOS and Android Development with Unity3D
iOS and Android Development with Unity3DiOS and Android Development with Unity3D
iOS and Android Development with Unity3D
 
Adobe and the Flash Gaming Landscape
Adobe and the Flash Gaming LandscapeAdobe and the Flash Gaming Landscape
Adobe and the Flash Gaming Landscape
 
Making A Game Engine Is Easier Than You Think
Making A Game Engine Is Easier Than You ThinkMaking A Game Engine Is Easier Than You Think
Making A Game Engine Is Easier Than You Think
 
Cross-Platform Desktop Apps with Electron (CodeStock Edition)
Cross-Platform Desktop Apps with Electron (CodeStock Edition)Cross-Platform Desktop Apps with Electron (CodeStock Edition)
Cross-Platform Desktop Apps with Electron (CodeStock Edition)
 
WebVR, not just Holograms in the web but powerful platform
WebVR, not just Holograms in the web but powerful platformWebVR, not just Holograms in the web but powerful platform
WebVR, not just Holograms in the web but powerful platform
 
WebVR, not just Holograms in the web but powerful platform
WebVR, not just Holograms in the web but powerful platformWebVR, not just Holograms in the web but powerful platform
WebVR, not just Holograms in the web but powerful platform
 
Cross-Platform Desktop Apps with Electron
Cross-Platform Desktop Apps with ElectronCross-Platform Desktop Apps with Electron
Cross-Platform Desktop Apps with Electron
 
Looking For Xaml In All The Wrong Places
Looking For Xaml In All The Wrong PlacesLooking For Xaml In All The Wrong Places
Looking For Xaml In All The Wrong Places
 
Node
NodeNode
Node
 
Doug McCune - Using Open Source Flex and ActionScript Projects
Doug McCune - Using Open Source Flex and ActionScript ProjectsDoug McCune - Using Open Source Flex and ActionScript Projects
Doug McCune - Using Open Source Flex and ActionScript Projects
 
Game development -session on unity 3d
Game development -session on unity 3d Game development -session on unity 3d
Game development -session on unity 3d
 
Cross-Platform Development
Cross-Platform DevelopmentCross-Platform Development
Cross-Platform Development
 
Creating Casual Games for Windows 8
Creating Casual Games for Windows 8Creating Casual Games for Windows 8
Creating Casual Games for Windows 8
 
Mobile native-hacks
Mobile native-hacksMobile native-hacks
Mobile native-hacks
 
Brewing Your Own Game Engie eng
Brewing Your Own Game Engie engBrewing Your Own Game Engie eng
Brewing Your Own Game Engie eng
 

More from IndieOutpost

More from IndieOutpost (9)

Algorithmische Grafik
Algorithmische GrafikAlgorithmische Grafik
Algorithmische Grafik
 
Haxe & NME
Haxe & NMEHaxe & NME
Haxe & NME
 
Dreamfab
DreamfabDreamfab
Dreamfab
 
Spiele entwickeln mit dem Adobe AIR SDK
Spiele entwickeln mit dem Adobe AIR SDKSpiele entwickeln mit dem Adobe AIR SDK
Spiele entwickeln mit dem Adobe AIR SDK
 
GameMaker:Studio
GameMaker:StudioGameMaker:Studio
GameMaker:Studio
 
Cocos2dx
Cocos2dxCocos2dx
Cocos2dx
 
Scaleform in Unity3D
Scaleform in Unity3DScaleform in Unity3D
Scaleform in Unity3D
 
HTML5 Spiele entwickeln mit ImpactJS
HTML5 Spiele entwickeln mit ImpactJSHTML5 Spiele entwickeln mit ImpactJS
HTML5 Spiele entwickeln mit ImpactJS
 
Location-based Games - Game Design für kaputte Controller
Location-based Games - Game Design für kaputte ControllerLocation-based Games - Game Design für kaputte Controller
Location-based Games - Game Design für kaputte Controller
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

Making HTML5 Games with Phaser

  • 1. Making HTML5 Games with Michel Wacker CEO Gentle Troll Entertainment GmbH @starnut Image http://phaser.io
  • 2. Topics of this talk • What is Phaser? • Who is it for? • What does it have to offer? • Examples • Resources • Tools & Workflow • Distribution
  • 3. What is Phaser? „Desktop and Mobile HTML5 game framework“ Created by Inspired by
  • 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
  • 8. „Yeah, but I hate code!“ Game Maker: Studio
  • 9. What you‘ll need: Text Editor Sublime
  • 10. What you‘ll need: Local server XAMPP MAMP (OSX only)
  • 11. Features • Boiled down setup & preload mechanism • Common game objects: image, sprite, group • Sprite sheets & texture atlases • TileSprites & collision maps • Bitmap fonts • Physics: P2 (polygons), Arcade (AABB) a.o. • Particles, tinting, WebGL shaders...
  • 12. Resources • Detailed documentation • > 320 examples (community driven) • Large helpful community • Lots tutorials on the web • Even free books
  • 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'); }
  • 15. Workflow: Art Flash: Animation Illustrator: Design Texture Atlas Sprite Sheet PNG sequence Texture Packer PNGGauntlet (Win) ImageOptim (OSX)
  • 16. Worflow Art: Bitmap Fonts Free web tool: Littera (buggy output for FireFox) Bitmap Font Generator (Windows) bmGlyph (OSX)
  • 17. Workflow: Code • Copy • Concat • Uglify / Minify • FTP deploy • Zip • ... NodeJS Taskrunner
  • 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
  • 26. Links - Phaser: http://phaser.io - Construct 2: https://www.scirra.com/construct2 - Game Maker: Studio https://www.yoyogames.com/studio - Sublime: http://www.sublimetext.com/ - WebStorm: http://www.jetbrains.com/webstorm/ - XAMPP: https://www.apachefriends.org/de/index.html - MAMP: http://www.mamp.info/ - Phaser docs: http://docs.phaser.io/index.html - Phaser examples: http://examples.phaser.io/ - HTML5 Game Devs Forum: http://www.html5gamedevs.com/ - Game Mechanic Explorer: http://gamemechanicexplorer.com/ - Free Phaser Book: https://leanpub.com/html5shootemupinanafternoon - TexturePacker: http://impactjs.com/ejecta - ImageOptim (OSX): https://imageoptim.com/ - PNGGauntlet (Windows): http://pnggauntlet.com/ - Bitmap Font Generator: http://www.angelcode.com/products/bmfont/ - bmGlyph (OSX): http://www.bmglyph.com/ - NodeJS: http://nodejs.org - Littera (Web): http://kvazars.com/littera/ - Grunt: http://gruntjs.com/ - gulp.js: http://gulpjs.com/ - CocoonJS: https://www.ludei.com/cocoonjs/ - Ejecta: http://impactjs.com/ejecta