Code: Video Game
  • Code Introduction
  • TUTORIALS
    • A. Hello Phaser
      • 1 Create New Files
      • 2 Add HTML for Game
      • 3 Add CSS for Game
      • 4 Add JS for Game
      • 5 Add Image to Game
      • 6 Add Input to Game
    • B. Matching Game
    • C. Top-Down Game
    • D. Side-Scrolling Game
  • REFERENCES
    • TEMP - Links to Old References
    • Phaser CE Game Template
    • Creating Game Assets
      • Images
      • Animated Sprites
      • Sound Effects
    • Phaser CE Code References
      • Game Stage (Canvas)
      • Game World
      • Game Camera
      • Images
      • Sprites
      • Sprite Animations
      • Sprite Health
      • Sprite Groups
      • Physics - Properties
      • Physics - Collisions
      • Physics - Other Methods
      • Weapon and Bullets
      • Enemy AI Behaviors
      • Audio
      • Text
      • Input - Keys
      • Input - Mouse/Pointer
      • Particle Effects
      • Tween Animations
      • Tilesprite Background
      • Timers
      • Random Numbers
      • Game Controls
  • LINKS
    • Project Guidebook
    • Phaser CE API Code Reference
    • Phaser CE Code Examples
    • W3Schools JavaScript Tutorial
    • Piskel Animated Sprite Editor
    • Leshy Sound FX Maker
Powered by GitBook
On this page
  • What's in this Guidebook?
  • Copyright and License

Code Introduction

NextA. Hello Phaser

Last updated 1 day ago

This Video Game Code Guidebook is a supplement to the .

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 and License

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 . 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.

Video Game Project Guidebook
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Creative Commons License