Modern HTML5 Game Development With
Phaser.JS & TypeScript
Phaser.JS is a robust mobile and desktop game framework, distributed under the MIT open source licence, based on HTML5 Canvas and WebGL technologies that allow you to build once and deploy across all modern web enabled devices. This presentation goes over the basic workflow of getting up and running with Phaser.JS by presenting a simple game designed for this presentation. Even if you are not interested in making games, this platform is great for any applications that require complex user interactions.
Presented By: Andrew Ribeiro | Git: Andrewnetwork
PROLOGUE
ADOBE FLASH KILLED THE INTERNET
Savior: HTML5
Flash is a mess, Flash is a waste, Flash is a big fat mistake.
WANTED
DEAD
What you need to know-------------Prerequisites
What we’re covering ----------------- overview
The HTML5 Game Framework/Engine Landscape
https://html5gameengine.com/
The HTML5 Game Framework/Engine Landscape
The HTML5 Game Framework/Engine Landscape
It’s free.
It’s open source.
I know you’re cheap.
MIT not GPL... chill.
JavaScript &
What is PhaserJS?
Open source HTML5 game framework useful for developing cross platform 2D games or complex user interfaces for the web.
Phaser Features......................................1
Phaser Features......................................2
Useful HTML5 Features
Phaser Examples...........................Be creative!
Colbert Segment :
Bubble Burst Bernie
Phaser Examples...........................Be creative!
Ramp Lab 1.3
Physics Simulation
Phaser Examples...........................Be creative!
Bridge Color Race
Game URL:
Mobile Game
Phaser Examples...........................Be creative!
Rival Command
TypeScript Tutorial:
https://www.digi-dom.co.uk/rival-command-a-game-built-with-phaser-js/
Pixi.js............................PhaserJS Rendering
Physics Engines
Phaser Phases..................................preload
Phaser Phases...................................CREATE
Phaser Phases........................UPDATE & Render
Simple Example: Castlevania Loader.............States
Boot state.
Code: Basics/AdvancedPhaserSetup
TankGame...............................in typescript
Look at the Code
Code: TankGame
WebGl Filters
PHASER
Deployment
Cordova
Intel XDK..........................................................................1
Intel XDK...........................................2
Aws,Heroku,Web Servers.......Where to put your stuff
What do you use to host your web applications?
RESOURCE
Really awesome categorized source code examples.
RESOURCE
An online sandbox for running phaser code.
Phaser TypeScript Tutorials
RESOURCE
http://phaser.io/tutorials/how-to-use-phaser-with-typescript
Part 1
http://www.photonstorm.com/phaser/advanced-phaser-and-typescript-projects
Part 2
Misc Resources (1)
RESOURCE
Name | URL | Note |
AABB | Collision Detection | |
p2.js | Advanced Physics 2D Lib | |
Physics Sys Compared | Which physics system should I use? | |
Arcade Physics | Basic Physics | |
Particles | Particle Examples | |
BabylonJS | HTML5 3D Game Dev |
Misc Resources (2)
RESOURCE
Name | URL | Note |
ThreeJS | 3D WebGL Renderer | |
OpenGL Sandbox | Different OpenGL shaders you can repurpose for use in your game. | |
ShaderToy | More code for OpenGL shaders. | |
TLDR Legal | Understand the licence this software is distributed under. | |
Udacity HTML5 | A free HTML5 game development course taught by google. |
Misc Resources (3)
RESOURCE
Name | URL | Note |
ZebraJS | http://www.zebkit.com/ | Canvas UI |
Box2D JS | http://box2d-js.sourceforge.net/index2.html | JS version of Box2D. |
TypeScript | https://en.wikipedia.org/wiki/TypeScript | A history of TypeScript |
EZGUI | https://github.com/Ezelia/EZGUI | A UI framework that’s made for phaser. |
HTML5 Game Dev Forums | http://www.html5gamedevs.com/ | Great forum for different html5 frameworks. |
Phaser Mobile | https://hacks.mozilla.org/2015/12/from-game-jam-to-mobile-and-firefox-os/ | Notes on how to make a Phaser game across multiple platforms. |
Misc Resources (4)
RESOURCE
Name | URL | Note |
Cordova + Phaser Tutorial | https://software.intel.com/en-us/html5/hub/blogs/how-to-make-a-mobile-virtual-pet-game-with-html5-and-cordova/ | How to use the cordova api with phaser to make mobile apps. |
Cordova | https://cordova.apache.org/ | Formerly phonegap. |
QUESTIONS& COMMMENTS
Presented By: Andrew Ribeiro
AndrewRIB.com
AndrewNetwork@gmail.com
FIND THIS PRESENTATION ONLINE:
https://github.com/Andrewnetwork/PhaserPresentation2016