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

Chapter 4, Building the Untangle Game with Canvas and the Drawing API


Drawing a circle in the Canvas

Pop quiz

Q1

2

Using mouse events to interact with objects drawn in the Canvas

Detecting mouse events in circles in the Canvas

Pop quiz

Q1

2

Q2

2

Clearing the Canvas

Pop quiz

Q1

1

Q2

4