ABSTRACT

Written by a pioneer of game development in academia, Introduction to Game Physics with Box2D covers the theory and practice of 2D game physics in a relaxed and entertaining yet instructional style. It offers a cohesive treatment of the topics and code involved in programming the physics for 2D video games.

Focusing on writing elementary game physics code, the first half of the book helps you grasp the challenges of programming game physics from scratch, without libraries or outside help. It examines the mathematical foundation of game physics and illustrates how it is applied in practice through coding examples. The second half of the book shows you how to use Box2D, a popular open source 2D game physics engine. A companion website provides supplementary material, including source code and videos.

This book helps you become a capable 2D game physics programmer through its presentation of both the theory and applications of 2D game physics. After reading the book and experimenting with the code samples, you will understand the basics of 2D game physics and know how to use Box2D to make a 2D physics-based game.

chapter 1|11 pages

Read Me First

part I|98 pages

Introduction to Game Physics

chapter 2|36 pages

Mathematics for Game Physics

chapter 3|29 pages

A Rigid Body Physics Game

chapter 4|30 pages

A Soft Body Physics Toy

part II|118 pages

Game Physics with Box2D

chapter 5|17 pages

Getting Started

chapter 6|30 pages

A Tale of Three Modules

chapter 7|39 pages

The Cannon Game

chapter 8|28 pages

The Collision Module

part III|25 pages

Appendices

chapter A|4 pages

For Math Geeks Only

chapter B|3 pages

The Blacke Arte of Program Debugging

chapter C|7 pages

There Are, in Fact, Dumb Questions

chapter D|7 pages

Bullet Physics