Chapter 6
HTML Files
critter.html
Building a basic critter
critterConstructor.html
Building the critter as an object
critterSpeed.html
Adding a property to the critter
critterChangeSpeed.html
Adding a method to the critter
sound.html
Working with sound effects
colTest.html
Testing for collisions
distance.html
Implementing distance-based collision
timerDemo.html
Using a simple timer
JavaScript Files
simpleGame.js
Image Files
boundRect.png
Bounding rectangles illustration
critter.gif
simpleBox.png
File Download
download zip file for this chapter