SlideShare a Scribd company logo
Game Development with
Phaser
Pablo Farias Navarro
https://zenva.com
CANVAS
WebGL
• Demos: babylonjs.com
Audio
Web Audio API
• Example: http://mdn.github.io/violent-theremin/
Other Game-Enabling Technologies
• Local storage
• AJAX to interact with servers
• Geolocation
• Camera API
• Gamepad API (experimental)
Advantages of HTML5
Game Development
• Open standards (future-proof)
• Transferable skills with web development
• Cross-platform
• Phaser.io
Games at Phaser.io
Advantages of Phaser
• Save time - don’t reinvent the wheel
• Rendering over Canvas or WebGL
• Cross-plaform support (input, screen scaling)
• Huge community and tutorials
Requirements
• Phaser library: https://phaser.io/download/release/2.6.2
• Code editor
• Local web server
Live coding
Coordinates in Phaser
Anchor point
• By default: top-left corner
Applications:
• Positioning
• Scaling
• Rotating
Before your first game..
• Showing text
• Modifying text
• Sprites reacting to user click / touch
Challenge!
• Game #1
• After that, go to: https://demoschool.zenva.com
(Using Google Chrome)
Challenge 1 - Steps
• Copy and paste the entire folder “Game 1”, rename it to
“Challenge 1”
• Leave only the background, 1 octopus sprite, and the text
• Position the text on the top area, show the text “Select which
one is VERDE”
• Load two more sprites: octopus-green.png and jellyfish.png
• Rename “rotateSprite” to “wrongAnswer”, make it to that it
rotates the sprite in 180 degrees
• Create a new method similar to “wrongAnswer”, called
“rightAnswer”, where the sprite is scaled 2x
Second Game
• Update
• Checking conditions
• Input anywhere on the screen
• Home screen
• Collision (without physics)
Challenge!
• Game #2
Add goal treasure chest at the end, restart the game
when you reach it.
• After that, go to: https://demoschool.zenva.com
(Using Google Chrome)
Third Game
• Spritesheet animations
• Physics
• Collision
• Groups
• Platformer movement
• Jumping
• Play sound
• Overlapping
Challenge!
• Game #3
If the player reaches the floor (y > 360), restart State
Load coin sound and image
Create a group for coins
When the player overlaps a coin, call a method called “collect”
In “collect”, play coin sound, and destroy the coin: (kill() method)
• After that, go to: https://demoschool.zenva.com
(Using Google Chrome)
Deployment
1. Host online
2. Cordova / Phonegap
3. Executable files (EXE)
Free options for hosting
• Github Pages: https://pages.github.com/
• BitBalloon.com
• Google Drive and Dropbox NO LONGER WORK for html
hosting
• Ideal: school FTP
Cordova
Phaser links
• Homepage: http://phaser.io
• Doc: http://docs.phaser.io
• Examples: https://examples.phaser.io
• Our course: https://academy.zenva.com/product/the-complete-mobile-game-
development-course-platinum-edition/
• Our free ebook: https://gamedevacademy.org/free-ebook-game-development-for-
human-beings/
Zenva Academy coupon code
• Coupon code: phaser-workshop
• 15% discount store-wide

More Related Content

What's hot

Graphics in games
Graphics in gamesGraphics in games
Graphics in games
ShubhamRokde1
 
Design pattern
Design patternDesign pattern
Design pattern
Pan Xiaotong
 
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
Pablo Farías Navarro
 
go-man API
go-man APIgo-man API
go-man API
Rob Baines
 
Photoshop Express Identifive Video Game
Photoshop Express Identifive Video GamePhotoshop Express Identifive Video Game
Photoshop Express Identifive Video Game
Jennifer Stern
 
Unreal conference slides
Unreal conference slidesUnreal conference slides
Unreal conference slides
Charles Schultz
 
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
Jean-Philippe Doiron
 
Production experiments
Production experimentsProduction experiments
Production experiments
BenDix4
 
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 platformChanghwan Yi
 
Attachment (1)
Attachment (1)Attachment (1)
Attachment (1)wyattgray1
 
Best mame emulator – gameex.com
Best mame emulator – gameex.comBest mame emulator – gameex.com
Best mame emulator – gameex.com
shantanu pramanik
 
Bushido bots
Bushido botsBushido bots
Bushido bots
wyattgray1
 
Tower Offense
Tower OffenseTower Offense
Tower OffenseTAMU
 
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
Jason Kneen
 
ConvergeSE: We Will All Be Game Developers
ConvergeSE: We Will All Be Game DevelopersConvergeSE: We Will All Be Game Developers
ConvergeSE: We Will All Be Game Developers
Hunter Loftis
 
Fun With Ruby And Gosu Javier Ramirez
Fun With Ruby And Gosu Javier RamirezFun With Ruby And Gosu Javier Ramirez
Fun With Ruby And Gosu Javier Ramirez
javier ramirez
 
Mobile game development using Starling
Mobile game development using StarlingMobile game development using Starling
Mobile game development using StarlingAhmad Arif
 
Intro to Game Modding - Lecture 8
Intro to Game Modding - Lecture 8Intro to Game Modding - Lecture 8
Intro to Game Modding - Lecture 8
Charles Palmer
 

What's hot (20)

Graphics in games
Graphics in gamesGraphics in games
Graphics in games
 
Design pattern
Design patternDesign pattern
Design pattern
 
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
 
go-man API
go-man APIgo-man API
go-man API
 
Photoshop Express Identifive Video Game
Photoshop Express Identifive Video GamePhotoshop Express Identifive Video Game
Photoshop Express Identifive Video Game
 
Unreal conference slides
Unreal conference slidesUnreal conference slides
Unreal conference slides
 
Pong
PongPong
Pong
 
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
 
Production experiments
Production experimentsProduction experiments
Production experiments
 
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
 
Attachment (1)
Attachment (1)Attachment (1)
Attachment (1)
 
Best mame emulator – gameex.com
Best mame emulator – gameex.comBest mame emulator – gameex.com
Best mame emulator – gameex.com
 
Bushido bots
Bushido botsBushido bots
Bushido bots
 
Tower Offense
Tower OffenseTower Offense
Tower Offense
 
Team fortress 2
Team fortress 2Team fortress 2
Team fortress 2
 
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
 
ConvergeSE: We Will All Be Game Developers
ConvergeSE: We Will All Be Game DevelopersConvergeSE: We Will All Be Game Developers
ConvergeSE: We Will All Be Game Developers
 
Fun With Ruby And Gosu Javier Ramirez
Fun With Ruby And Gosu Javier RamirezFun With Ruby And Gosu Javier Ramirez
Fun With Ruby And Gosu Javier Ramirez
 
Mobile game development using Starling
Mobile game development using StarlingMobile game development using Starling
Mobile game development using Starling
 
Intro to Game Modding - Lecture 8
Intro to Game Modding - Lecture 8Intro to Game Modding - Lecture 8
Intro to Game Modding - Lecture 8
 

Similar to Teacher Training Workshop - Game Development with Phaser

TiConf 2014 Game Dev with Titanium and Platino 5/10/14
TiConf 2014 Game Dev with Titanium and Platino 5/10/14TiConf 2014 Game Dev with Titanium and Platino 5/10/14
TiConf 2014 Game Dev with Titanium and Platino 5/10/14
gouldjw13
 
A Holistic Approach to HTML5 Game Design & Development
A Holistic Approach to HTML5 Game Design & DevelopmentA Holistic Approach to HTML5 Game Design & Development
A Holistic Approach to HTML5 Game Design & Development
Karl Bunyan
 
Supersize Your Production Pipe
Supersize Your Production PipeSupersize Your Production Pipe
Supersize Your Production Pipe
slantsixgames
 
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработкиСергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
DevGAMM Conference
 
Creating Casual Games for Windows 8
Creating Casual Games for Windows 8Creating Casual Games for Windows 8
Creating Casual Games for Windows 8
SmartyPantsCoding.com
 
Native Code is Dead AKA Cross Platform Development with Unity 3D
Native Code is Dead AKA Cross Platform Development with Unity 3DNative Code is Dead AKA Cross Platform Development with Unity 3D
Native Code is Dead AKA Cross Platform Development with Unity 3D
Ralph Barbagallo
 
Supersize your production pipe enjmin 2013 v1.1 hd
Supersize your production pipe    enjmin 2013 v1.1 hdSupersize your production pipe    enjmin 2013 v1.1 hd
Supersize your production pipe enjmin 2013 v1.1 hdslantsixgames
 
Maximize Your Production Effort (English)
Maximize Your Production Effort (English)Maximize Your Production Effort (English)
Maximize Your Production Effort (English)
slantsixgames
 
Programming Language Final PPT
Programming Language Final PPTProgramming Language Final PPT
Programming Language Final PPT
Matthew Chang
 
Flutter game development
Flutter game developmentFlutter game development
Flutter game development
Allan Davis
 
Hybrid Game Development with GameSalad
Hybrid Game Development with GameSaladHybrid Game Development with GameSalad
Hybrid Game Development with GameSalad
mirahman
 
iOS and Android Development with Unity3D
iOS and Android Development with Unity3DiOS and Android Development with Unity3D
iOS and Android Development with Unity3D
Ralph Barbagallo
 
Native Code is Dead AKA Cross Platform Development with Unity3D
Native Code is Dead AKA Cross Platform Development with Unity3DNative Code is Dead AKA Cross Platform Development with Unity3D
Native Code is Dead AKA Cross Platform Development with Unity3D
Ralph Barbagallo
 
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)
David Salz
 
Chrome Dev Tools
Chrome Dev ToolsChrome Dev Tools
Chrome Dev Tools
Troy Miles
 
Impactjs lightening talk.key
Impactjs lightening talk.keyImpactjs lightening talk.key
Impactjs lightening talk.key
Yi-Fan Liao
 
Developing Multi Platform Games using PlayN and TriplePlay Framework
Developing Multi Platform Games using PlayN and TriplePlay FrameworkDeveloping Multi Platform Games using PlayN and TriplePlay Framework
Developing Multi Platform Games using PlayN and TriplePlay Framework
Csaba Toth
 
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
benko
 
Thomas Blair Portfolio
Thomas Blair PortfolioThomas Blair Portfolio
Thomas Blair Portfolio
Blixtev
 

Similar to Teacher Training Workshop - Game Development with Phaser (20)

TiConf 2014 Game Dev with Titanium and Platino 5/10/14
TiConf 2014 Game Dev with Titanium and Platino 5/10/14TiConf 2014 Game Dev with Titanium and Platino 5/10/14
TiConf 2014 Game Dev with Titanium and Platino 5/10/14
 
A Holistic Approach to HTML5 Game Design & Development
A Holistic Approach to HTML5 Game Design & DevelopmentA Holistic Approach to HTML5 Game Design & Development
A Holistic Approach to HTML5 Game Design & Development
 
Supersize Your Production Pipe
Supersize Your Production PipeSupersize Your Production Pipe
Supersize Your Production Pipe
 
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработкиСергей Батищев: 2D игры на HTML5: мифы и реальность разработки
Сергей Батищев: 2D игры на HTML5: мифы и реальность разработки
 
Creating Casual Games for Windows 8
Creating Casual Games for Windows 8Creating Casual Games for Windows 8
Creating Casual Games for Windows 8
 
Native Code is Dead AKA Cross Platform Development with Unity 3D
Native Code is Dead AKA Cross Platform Development with Unity 3DNative Code is Dead AKA Cross Platform Development with Unity 3D
Native Code is Dead AKA Cross Platform Development with Unity 3D
 
Supersize your production pipe enjmin 2013 v1.1 hd
Supersize your production pipe    enjmin 2013 v1.1 hdSupersize your production pipe    enjmin 2013 v1.1 hd
Supersize your production pipe enjmin 2013 v1.1 hd
 
Maximize Your Production Effort (English)
Maximize Your Production Effort (English)Maximize Your Production Effort (English)
Maximize Your Production Effort (English)
 
Programming Language Final PPT
Programming Language Final PPTProgramming Language Final PPT
Programming Language Final PPT
 
Flutter game development
Flutter game developmentFlutter game development
Flutter game development
 
Hybrid Game Development with GameSalad
Hybrid Game Development with GameSaladHybrid Game Development with GameSalad
Hybrid Game Development with GameSalad
 
iOS and Android Development with Unity3D
iOS and Android Development with Unity3DiOS and Android Development with Unity3D
iOS and Android Development with Unity3D
 
Native Code is Dead AKA Cross Platform Development with Unity3D
Native Code is Dead AKA Cross Platform Development with Unity3DNative Code is Dead AKA Cross Platform Development with Unity3D
Native Code is Dead AKA Cross Platform Development with Unity3D
 
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)
 
Chrome Dev Tools
Chrome Dev ToolsChrome Dev Tools
Chrome Dev Tools
 
Impactjs lightening talk.key
Impactjs lightening talk.keyImpactjs lightening talk.key
Impactjs lightening talk.key
 
Developing Multi Platform Games using PlayN and TriplePlay Framework
Developing Multi Platform Games using PlayN and TriplePlay FrameworkDeveloping Multi Platform Games using PlayN and TriplePlay Framework
Developing Multi Platform Games using PlayN and TriplePlay Framework
 
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
 
Thomas Blair Portfolio
Thomas Blair PortfolioThomas Blair Portfolio
Thomas Blair Portfolio
 
XNA L01–Introduction
XNA L01–IntroductionXNA L01–Introduction
XNA L01–Introduction
 

More from Pablo Farías Navarro

Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Unity and Microsoft Azure Cognitive Services - DIGITREK21 WorkshopUnity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Pablo Farías Navarro
 
Unite Sydney - Xr Input Mapping
Unite Sydney - Xr Input Mapping Unite Sydney - Xr Input Mapping
Unite Sydney - Xr Input Mapping
Pablo Farías Navarro
 
Create Your First VR Educational App with Unity
Create Your First VR Educational App with UnityCreate Your First VR Educational App with Unity
Create Your First VR Educational App with Unity
Pablo Farías Navarro
 
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
Pablo Farías Navarro
 
How to launch a successful Kickstarter campaign
How to launch a successful Kickstarter campaignHow to launch a successful Kickstarter campaign
How to launch a successful Kickstarter campaign
Pablo Farías Navarro
 
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
Pablo Farías Navarro
 
How to launch a successful kickstarter campaign
How to launch a successful kickstarter campaignHow to launch a successful kickstarter campaign
How to launch a successful kickstarter campaign
Pablo Farías Navarro
 
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
Pablo Farías Navarro
 

More from Pablo Farías Navarro (8)

Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Unity and Microsoft Azure Cognitive Services - DIGITREK21 WorkshopUnity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
 
Unite Sydney - Xr Input Mapping
Unite Sydney - Xr Input Mapping Unite Sydney - Xr Input Mapping
Unite Sydney - Xr Input Mapping
 
Create Your First VR Educational App with Unity
Create Your First VR Educational App with UnityCreate Your First VR Educational App with Unity
Create Your First VR Educational App with Unity
 
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
 
How to launch a successful Kickstarter campaign
How to launch a successful Kickstarter campaignHow to launch a successful Kickstarter campaign
How to launch a successful Kickstarter campaign
 
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
 
How to launch a successful kickstarter campaign
How to launch a successful kickstarter campaignHow to launch a successful kickstarter campaign
How to launch a successful kickstarter campaign
 
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
 

Recently uploaded

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 

Recently uploaded (20)

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 

Teacher Training Workshop - Game Development with Phaser

  • 1. Game Development with Phaser Pablo Farias Navarro https://zenva.com
  • 2.
  • 3.
  • 4.
  • 5.
  • 9. Web Audio API • Example: http://mdn.github.io/violent-theremin/
  • 10. Other Game-Enabling Technologies • Local storage • AJAX to interact with servers • Geolocation • Camera API • Gamepad API (experimental)
  • 11. Advantages of HTML5 Game Development • Open standards (future-proof) • Transferable skills with web development • Cross-platform
  • 14.
  • 15. Advantages of Phaser • Save time - don’t reinvent the wheel • Rendering over Canvas or WebGL • Cross-plaform support (input, screen scaling) • Huge community and tutorials
  • 16. Requirements • Phaser library: https://phaser.io/download/release/2.6.2 • Code editor • Local web server
  • 19.
  • 20. Anchor point • By default: top-left corner Applications: • Positioning • Scaling • Rotating
  • 21. Before your first game.. • Showing text • Modifying text • Sprites reacting to user click / touch
  • 22. Challenge! • Game #1 • After that, go to: https://demoschool.zenva.com (Using Google Chrome)
  • 23.
  • 24. Challenge 1 - Steps • Copy and paste the entire folder “Game 1”, rename it to “Challenge 1” • Leave only the background, 1 octopus sprite, and the text • Position the text on the top area, show the text “Select which one is VERDE” • Load two more sprites: octopus-green.png and jellyfish.png • Rename “rotateSprite” to “wrongAnswer”, make it to that it rotates the sprite in 180 degrees • Create a new method similar to “wrongAnswer”, called “rightAnswer”, where the sprite is scaled 2x
  • 25. Second Game • Update • Checking conditions • Input anywhere on the screen • Home screen • Collision (without physics)
  • 26. Challenge! • Game #2 Add goal treasure chest at the end, restart the game when you reach it. • After that, go to: https://demoschool.zenva.com (Using Google Chrome)
  • 27. Third Game • Spritesheet animations • Physics • Collision • Groups • Platformer movement • Jumping • Play sound • Overlapping
  • 28. Challenge! • Game #3 If the player reaches the floor (y > 360), restart State Load coin sound and image Create a group for coins When the player overlaps a coin, call a method called “collect” In “collect”, play coin sound, and destroy the coin: (kill() method) • After that, go to: https://demoschool.zenva.com (Using Google Chrome)
  • 29. Deployment 1. Host online 2. Cordova / Phonegap 3. Executable files (EXE)
  • 30. Free options for hosting • Github Pages: https://pages.github.com/ • BitBalloon.com • Google Drive and Dropbox NO LONGER WORK for html hosting • Ideal: school FTP
  • 32.
  • 33. Phaser links • Homepage: http://phaser.io • Doc: http://docs.phaser.io • Examples: https://examples.phaser.io • Our course: https://academy.zenva.com/product/the-complete-mobile-game- development-course-platinum-edition/ • Our free ebook: https://gamedevacademy.org/free-ebook-game-development-for- human-beings/
  • 34. Zenva Academy coupon code • Coupon code: phaser-workshop • 15% discount store-wide