Playground Scripts

Playground scripts let you experiment with JavaScript programing without having to retype code, hunt down missing pieces, or create your own graphics. Each asset you need to run the script in your browser (the latest Google Chrome is recommended) is included with the example.

The scripts on this page are described in the book The Gamer's Guide to Coding, many with step-by-step explanations of what's going on in the code, and how it works. The downloads are organized by chapter for your convienence. All code is open source and provided under the Creative Commons 4.0 Sharealike license.


Downloading

All code is provided in zip archive file format for easy downloading. Each zip may contain one or more constituent files inside it. To use these files, the archive must be unzipped to a new folder. Modern operating systems, including Windows and Macintosh OS X, provide their own built-in means for unzipping archive files. Refer to the online help for your operating system for the exact details. Be sure to unzip the files to a folder where you have full user access rights. Otherwise you may not be able to save the files or make changes to them.

PART ONE: GETTING STARTED

PART TWO: LEARNING THE ROPES

PART THREE: STEPPING UP YOUR GAME