Phaser III (v3.24+)


Consolidated Examples

Table of Content:

Open the bareBonesIndex.html and game.js in your favorite text editor.
Use your browser's "developers Tools -> Console" to watch and monitor the live code. Search inside the file for "Example n.n" where "n" is the number of the example. Other examples are externally loaded files.

Phaser III (1st to 6th editions):

Searching for Game Mechanics and Mechanisms.

Content Management System (CMS)
embedded in a HTML5 <canvas> tag.


Phaser III Examples.

Example: 1.1 Creating Name-space for games
Sample: Bare Bones Index.html
Sample: Bare Bones with no name-space
Sample: Mobile Index.html


Example: 2.1 Prototyping Graphics (Lines 876 to 889)
Example 2.2: Starting the Game.js (Preload Game Phase)


Example: 3.1 Creating Game Phases (traditional method)
Example: 3.1a Creating Game Phase Continued - Game.js (traditional method)
Example: 3.2 Additional Phaser Properties JS (Lines 218 to 270)
Example 3.3: Additional Phaser Properties


Phaser III Game Prototyping Demonstrations

Building 100s of games using HTML5 and Phaser v3.24+ JavaScript Framework (new revised and expanded 6th Edition) Open the the index.html in your favorite text editor. Use your browser's "developers Tools -> Console" to watch and monitor the live code. Reference the book explanations and find the embedded sourced code in the html as script tags.


Game Mechanics and Mechanisms identified

Instructions: Search inside this file for "GM" where game mechanics and mechanisms are identified according to Schell's definitions.

Example: 6: Identifying Schell's Game Mechanics


WebSockets, Dynamic Menus, Combat, and FSM

Open the the index.html in your favorite text editor. Use your browser's "developers Tools -> Console" to watch and monitor the live code. Reference the book explanations and find the embedded sourced code in the html as script tags.

Table of Contents


Sample: 8.1: Prototyping a HUD (in book)
Sample: 8.2: Heads Up Display Plugin (in book)
Example: 8.3: HUD Menu Grouping (in book)


Sample: 9.1: Combat Pseudo Code (in book)
Sample: 9.2: Combat Pseudo Code (in book)
Example: 9.3: Enemy mirrored movement
Sample: 9.4: Combat Pseudo Code (in book)
Sample: 9.5: New Combat States Module Added (in book)

Copyright © 2017, Stephen Gose LLC.
All rights reserved.