A free book and sample code about game development for Computer Scientist using Unity3D.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Game Development for Computer Scientists

This repository holds the Markdown source files and related sample code for a book on game development topics. The goal of this book is to provide a unified view of game development, under the assumption that the reader has knowledge of computer science topics, such as algorithms, data structures, artificial intelligence, basic algebra, computer geometry, and other topics usually taught in CS majors.

The book is accompanied by a Unity project with lots of sample codes for many of the concepts and techniques presented. We choose Unity because we believe that right now, all other things being equal, it is the tool of choice for new game projects, specially in small teams with few resources. Throughout the book we present all the topics as general as possible, highlighting the theoretical foundations and providing ideas on how to implement them yourself. Then we use the appropriate Unity concepts (when they exist) to illustrate the usage of such concepts in a realistic scenario.

You can start reading the book right here.


This is a non-exhaustive list of the content we pretend to include in the book:

  • Game mechanics
  • Difficulty, learning curves, and engagement
  • Game architecture and design patterns
  • 2D and 3D graphics
  • Physics-based animation
  • Game AI
  • Procedural content generation
  • Optimization and performance tips
  • Publishing and marketing


Every contribution is very much appreciated, anything from fixing a comma or misspelling to correcting source code or writing new demos, and even whole new chapters. For details about to contribute, please refer to the Contributors section.


This project is protected under a dual license.

The sample code is licensed under an MIT software license, which is one of the most permissive licenses out there, except for public domain. This means you do can use the code in any way, even commercially, provided that you mention the authors somewhere in your product (something along the lines Contains code taken from https://github.com/apiad/gamedev-book).

The book itself (everything inside the Book folder) is protected under a Creative Commons Attribution Non-Commercial Share-Alike 4.0 License. This means you can fork, modify, redistribute and use the book's content, partially or in full, electronically or printed, in any way except for commercial applications. By commercial we mean that you cannot sell the book, rent it, or in any other form profit from its content. You can, however, use the book in classes you teach, even if you charge for the classes (but you cannot charge for the book itself). You can of course also use the knowledge you gain from the book to make your own games and make profit from that. It is just profiting directly from the distribution of the content that is forbidden. Also, you need to respect the authors (all contributors are authors).

Creative Commons License
Game Development for Computer Sciences by Alejandro Piad & David Darias is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.