• Stars
    star
    4,134
  • Rank 10,476 (Top 0.3 %)
  • Language
    HTML
  • License
    Other
  • Created over 11 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Source repo for the book

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/format.py) 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/format.py

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/format.py --watch

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

More Repositories

1

craftinginterpreters

Repository for the book "Crafting Interpreters"
HTML
8,949
star
2

vigil

Vigil, the eternal morally vigilant programming language
Python
2,900
star
3

hauberk

A web-based roguelike written in Dart.
Dart
2,009
star
4

mark-sweep

A simple mark-sweep garbage collector in C
C
722
star
5

magpie

The Magpie programming language
Python
360
star
6

bantam

A simple demo app for Pratt parsing
Java
312
star
7

finch

The Finch programming language
C++
242
star
8

jasic

A complete interpreter for a dialect of BASIC in one Java sourcefile
Java
150
star
9

rooms-and-mazes

Animated demo code for a random dungeon generator
Dart
137
star
10

ui-as-code

Design work on improving Dart's syntax for UI code
Dart
121
star
11

amaranth

An open source roguelike written in C#
C#
120
star
12

journal

My blog, in all its statically-generated glory.
HTML
101
star
13

malison

A little terminal emulation package for Dart.
Dart
74
star
14

lark

The Lark programming language.
Java
59
star
15

piecemeal

Basic data structures your 2D Dart game may need.
Dart
52
star
16

wrenalyzer

Static analyzer for the Wren programming language
44
star
17

lisp2-gc

A simple implementation of the LISP2 mark-compact GC algorithm
C
38
star
18

malison-dotnet

A terminal emulation library in C#
C#
36
star
19

a-turn-based-game-loop

Demo code for http://journal.stuffwithstuff.com/2014/07/15/a-turn-based-game-loop/
Dart
28
star
20

markymark

A tiny static web server for previewing Markdown files
Dart
25
star
21

fov

Demo code for a blog post about field-of-view calculation
Dart
21
star
22

bulfinch

Just a little toy language to learn about register-based VMs.
Java
20
star
23

pattern_matching

A simple ML-like pattern-matching library in C#.
C#
18
star
24

bramble-dotnet

A set of utility classes and extension methods in C#
C#
17
star
25

bits

Tiny web page for converting between binary, decimal, hex and UTF-8
HTML
9
star
26

dep-external-libraries

Proposal for handling platform-specific code in Dart
Dart
8
star
27

temp_primary_constructors

Temporary repo for trying out a proposed Dart language feature
Dart
7
star
28

wren-sublime

A Sublime Package for the Wren programming language
6
star
29

multipleinheritance.js

A little hack to get multiple inheritance working in JavaScript.
JavaScript
6
star
30

settings

My personal settings, configurations, and dotfiles.
Shell
5
star
31

wren-atom

Atom package for Wren
CoffeeScript
4
star
32

linkedlist

Reversing a linked list
Go
4
star
33

magpie-csharp

The old C#-based Magpie programming language
C#
3
star
34

magpie-optionally-typed

The old single-dispatch optionally-typed flavor of the Magpie programming language.
C#
3
star
35

temp-flutter-examples

Temporary repo looking at some Flutter examples
Dart
2
star
36

dep-interface-libraries

DEP for configuration-specific code in Dart
2
star
37

gallery-constructors

Temporary repo to test out some potential changes around constructors in Dart
Dart
1
star
38

format-flutter

Temporary repo to apply an experimental dart format style to Flutter.
Dart
1
star
39

module_scrape

Temporary code for investigating a module system for Dart
Dart
1
star
40

temp_flutter_format

Temporary repo to experiment with some formatting styles in the Flutter repo
Dart
1
star
41

support

My personal repository for support files: things like color schemes, preferences, and other settings files that it's handy to have centrally accessible.
1
star