Book Image

HTML5 Game Development by Example: Beginner's Guide

By : Seng Hin Mak
Book Image

HTML5 Game Development by Example: Beginner's Guide

By: Seng Hin Mak

Overview of this book

Table of Contents (18 chapters)
HTML5 Game Development by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
9
Building a Physics Car Game with Box2D and Canvas
Index

Drawing the physics world in the canvas


We have created the ground, but it is only in the mathematics model. We do not see anything in the canvas because we have not drawn anything on it yet. In order to show what the physics looks like, we have to draw something according to the physics world.