Phaser III (v3.24+) Consolidated Examples
Game Prototype Library


Consolidated Book Examples
& Samples

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.

https://makingbrowsergames.com/p3gp-book/_p3demos/game.js
https://makingbrowsergames.com/p3gp-book/_p3demos/game-noNameSpace.js
https://makingbrowsergames.com/p3gp-book/_p3demos/Ch5-game.js


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
Example: 2.2 Launching a Game
Example 2.4 Bare-bones Index Page - Traditional Method
Example 2.5: Starting the Game.js


Example: 3.1 Creating Game Phase (traditional method)
Example: 3.1a Creating Game Phase Continued - Game.js (traditional method)
Example: 3.4 Additional Phaser Properties JS
Example 3.4: Additional Phaser Properties


Chapter 4 Table of Contents
Example: 4.1: Prototyping a Visual Avatars
Example: 4.2: Prototyping Movement Properties
Example: 4.3: Movement Arrows Integration
Example: 4.4: World Boundaries Grouping
Example: 4.5: Interior Walls Integration
Example: 4.6: Doors as Buttons
Example: 4.7: Collision Detection Integration
Example: 4.8: Collision Results Determination
Example: 4.9: New Game Over State
Example: 4.10: Elementary HUD Creation
Example: 4.11: Collecting User Input
Example: 4.12: Responding to User Input


Example: 6: Identifying Game Mechanics


Chapter 7 Table of Contents
Example: 7.1: Launching Web Sockets
Example: 7.2: Dynamic Combat Menus
Example: 7.3: Dynamic Combat Menus supporting function
Sample: Projectile Template
Example: 7.4: Grid-ed Combat
Example: 7.5: Grid-less Combat Encounter
Example: 7.6: Grid-ed Combat
Example: 7.7: Grid-ed Combat Squares
Sample: Combat Finite State Machine (in book)
Example: SCAVT game: lines 292-318
Example: Story Narrative
Example: Combat Story Narrative


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.