Code Introduction

This Video Game Code Guidebook is a supplement to the Video Game Project Guidebook.

What's in this Guidebook?

This guidebook contains a series of video game code tutorials to help you get familiar with programming games using the Phaser CE game framework.

In addition, this guidebook contains coding references to explain how to use Phaser CE code to create a game world and add various features to the gameplay.

Finally, this guidebook also contains links to external resources, such as the Phaser CE API code reference, Phaser CE code examples, and online tools for creating game assets, such as animated sprites and sound effects.

HOW TO COPY CODE: In this guidebook, you can click the copy icon displayed in the upper right of a code block to copy all the code to the clipboard for pasting.

// example code block
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'my-game',
  { preload: preload, create: create, update: update });

Copyright © 2015-2025 by Jim Lyst and Michael Frontz, Indiana University Luddy School of Informatics, Computing, and Engineering at Indianapolis.

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You are free to use, share, or adapt this material for noncommercial purposes as long as you provide proper attribution and distribute any copies or adaptations under this same license.

Creative Commons License

Last updated