Skip to content
Source repo for the book
HTML C++ CSS Python Roff Dart Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
asset Merge branch 'master' of… May 16, 2015
book Live link to Unity game loop. Fix #295. May 16, 2015
code Correct jump direction in skylaunch. Fix #296. May 16, 2015
html Changed the link at the bottom of the Game Loop page to point to the … Feb 21, 2016
note Fix a few minor bugs. Oct 9, 2014
script Fix #269. Sep 28, 2014
.gitignore Fix chapter links when exporting XML. Jun 19, 2014
LICENSE Add a LICENSE. Jan 2, 2017
build Pass args to build scripts. Jul 4, 2014
watch Pass args to build scripts. Jul 4, 2014

Note: Now that the book is done, I'm not actively working on it.

There are only so many hours in the day, and I have other projects that need my love, including a new book. This means I'm not responding to issues and pull requests here. However, I do intend to circle back and do a second edition at some point, so please do continue to file bugs.

Even though I'm not responding, I do deeply appreciate every issue filed. Thank you!

– bob

This is the source repo for the book Game Programming Patterns.

Building the Book

The book is written in Markdown (in book/). A little Python script (script/ converts that along with a SASS file (asset/style.scss) and HTML template (asset/template.html) to the final HTML (in html/). To run the format script locally, you'll need to have Python 2.7-ish, and install Python Markdown, Pygments, and SmartyPants:

$ pip install markdown
$ pip install pygments
$ pip install smartypants

You may need sudo for those. Once that's done, you can run:

$ python script/

Make sure to run this from the root directory of the repo. That will regenerate all of the chapter and section intro HTML files. If you're editing stuff, the script can also be run in watch mode:

$ python script/ --watch

That will monitor the file system for changes to the markdown files, SASS file, or HTML template, and reprocess them as needed.

You can’t perform that action at this time.