SlideShare a Scribd company logo
Game Development with
Phaser
Pablo Farias Navarro
https://zenva.com
Teacher Training Workshop  - Game Development with Phaser
Teacher Training Workshop  - Game Development with Phaser
Teacher Training Workshop  - Game Development with Phaser
Teacher Training Workshop  - Game Development with Phaser
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
Teacher Training Workshop  - Game Development with Phaser
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
Teacher Training Workshop  - Game Development with 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)
Teacher Training Workshop  - Game Development with Phaser
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
Teacher Training Workshop  - Game Development with Phaser
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

PPTX
Phaser presentation
PPTX
Introduction to Phaser.js
PPTX
Making HTML5 Games with Phaser
PDF
My 10 days with Phaser.js - WarsawJS Meetup #13
PDF
Absolutist: Porting to major platforms within a minute
PPTX
Home Arcade setup (NoVA Hackers)
PPT
Phaser Workshop Internet World 2014
PPTX
Using Minecraft to Create an Engaging Cinematic
Phaser presentation
Introduction to Phaser.js
Making HTML5 Games with Phaser
My 10 days with Phaser.js - WarsawJS Meetup #13
Absolutist: Porting to major platforms within a minute
Home Arcade setup (NoVA Hackers)
Phaser Workshop Internet World 2014
Using Minecraft to Create an Engaging Cinematic

What's hot (20)

PPTX
Graphics in games
PPTX
Design pattern
ODP
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
PPTX
go-man API
PDF
Photoshop Express Identifive Video Game
PPT
Unreal conference slides
PDF
PPTX
From Web to Mobile with Stage 3D
PPTX
Production experiments
PDF
W3C HTML5 KIG-The near future of the web platform
PPTX
Attachment (1)
PPTX
Best mame emulator – gameex.com
PPTX
Bushido bots
PDF
Tower Offense
PPT
Team fortress 2
PDF
Adventures in cross platform ConnectJS / TiConnect 2014
PDF
ConvergeSE: We Will All Be Game Developers
PDF
Fun With Ruby And Gosu Javier Ramirez
PPTX
Mobile game development using Starling
PPTX
Intro to Game Modding - Lecture 8
Graphics in games
Design pattern
HTML5 Mobile Game Development Workshop - Module 2 - HTML5 Developer Conferenc...
go-man API
Photoshop Express Identifive Video Game
Unreal conference slides
From Web to Mobile with Stage 3D
Production experiments
W3C HTML5 KIG-The near future of the web platform
Attachment (1)
Best mame emulator – gameex.com
Bushido bots
Tower Offense
Team fortress 2
Adventures in cross platform ConnectJS / TiConnect 2014
ConvergeSE: We Will All Be Game Developers
Fun With Ruby And Gosu Javier Ramirez
Mobile game development using Starling
Intro to Game Modding - Lecture 8
Ad

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

PDF
Introduce phaser
PDF
Юлия Пучнина "PhaserJS for advertisement: игры внутри баннеров"
PDF
JS Lab2017_Юлия Пучнина_PhaserJS и что он умеет
PDF
Making Native Browser Games in the Modern Age
PDF
Making Native Browser Games in The Modern Age
ODP
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
PPTX
Introduction to HTML5 game development (with Phaser) - Riva
PPTX
Introduction to HTML5 game development (with Phaser)
PDF
One codebase, multiple platforms; Using HTML5/js for game dev
ODP
HTML5 Game Development frameworks overview
PDF
Getting started in mobile games
PDF
Story behind PF 2016
PDF
Google kick ass-game_programming_with_gwt
PDF
enchant js workshop on Calpoly
PDF
Corona SDK Mobile Game Development Beginner s Guide 2nd Edition Michelle M. F...
PPTX
Game Development with TouchDevelop
PPTX
Being a game developer with the skills you have
PPTX
HTML5 - Chances and Pitfalls (Bytro Labs GmbH)
PDF
Patrick Curry Meet Up
PDF
Sutd Game Lab's prototyping tips
Introduce phaser
Юлия Пучнина "PhaserJS for advertisement: игры внутри баннеров"
JS Lab2017_Юлия Пучнина_PhaserJS и что он умеет
Making Native Browser Games in the Modern Age
Making Native Browser Games in The Modern Age
HTML5 Mobile Game Development - Brisbane Game Technology Meetup 2015
Introduction to HTML5 game development (with Phaser) - Riva
Introduction to HTML5 game development (with Phaser)
One codebase, multiple platforms; Using HTML5/js for game dev
HTML5 Game Development frameworks overview
Getting started in mobile games
Story behind PF 2016
Google kick ass-game_programming_with_gwt
enchant js workshop on Calpoly
Corona SDK Mobile Game Development Beginner s Guide 2nd Edition Michelle M. F...
Game Development with TouchDevelop
Being a game developer with the skills you have
HTML5 - Chances and Pitfalls (Bytro Labs GmbH)
Patrick Curry Meet Up
Sutd Game Lab's prototyping tips
Ad

More from Pablo Farías Navarro (7)

PDF
Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
PPTX
Unite Sydney - Xr Input Mapping
PPTX
Create Your First VR Educational App with Unity
PPTX
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
ODP
How to launch a successful Kickstarter campaign
ODP
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
PPTX
How to launch a successful kickstarter campaign
Unity and Microsoft Azure Cognitive Services - DIGITREK21 Workshop
Unite Sydney - Xr Input Mapping
Create Your First VR Educational App with Unity
Creating Unity VR Experiences with 360 Content - Brisbane VR Hackathon 2017
How to launch a successful Kickstarter campaign
HTML5 Mobile Game Development Workshop - Module 1 - HTML5 Developer Conferenc...
How to launch a successful kickstarter campaign

Recently uploaded (20)

PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Trump Administration's workforce development strategy
PDF
Classroom Observation Tools for Teachers
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Yogi Goddess Pres Conference Studio Updates
PPTX
Cell Types and Its function , kingdom of life
Anesthesia in Laparoscopic Surgery in India
Trump Administration's workforce development strategy
Classroom Observation Tools for Teachers
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Complications of Minimal Access Surgery at WLH
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
GDM (1) (1).pptx small presentation for students
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Abdominal Access Techniques with Prof. Dr. R K Mishra
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Computing-Curriculum for Schools in Ghana
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Yogi Goddess Pres Conference Studio Updates
Cell Types and Its function , kingdom of life

Teacher Training Workshop - Game Development with Phaser

  • 1. Game Development with Phaser Pablo Farias Navarro https://zenva.com
  • 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
  • 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
  • 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)
  • 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
  • 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