Source code examples from "Developing Games With Ruby"