Errata

Supercharged JavaScript Graphics

Errata for Supercharged JavaScript Graphics

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Other Digital Version
2999
Kindle location 2,999 - middle of the page

Just before the "Putting It All Together" is the last of the Orbit Assault game code. The is a typo just before $("draw-target").append...

Code says:
setTimeout(gameLoop, 15);
}();

This should be:

setTimeout(gameLoop, 15);
};


I verified this by viewing the source of http://www.professorcloud.com/supercharged/orbit-assault/orbit-assault.htm.

Thanks for the book. I've learned a lot from it that I can use day-to-day.

Steven Wolf  Oct 09, 2013 
Printed, PDF
Page billdwhite@gmail.com
billdwhite@gmail.com

Page 60 - about a third of the way down the page in the code sample, there is a for loop that states:

for (i = tilesW; i; i--) {
}

What is tilesW? That variable is not referenced anywhere else in the code sample and appears to come from no where. I put a break point on the code and it never gets hit anyway so no errors occur.

Note from the Author or Editor:
The tilesW variable in the loop initialization should actually be tilesAcross.

for (i = tilesW; i; i--) {

}


Bill White  Sep 14, 2011 
Printed, PDF
Page billdwhite@gmail.com
billdwhite@gmail.com

Page 60 - about a third of the way down the page in the code sample, there is a for loop that states:

for (i = tilesW; i; i--) {
}

What is tilesW? That variable is not referenced anywhere else in the code sample and appears to come from no where. I put a break point on the code and it never gets hit anyway so no errors occur.

Note from the Author or Editor:
tilesW should read tilesAcross

Bill White  Sep 14, 2011 
149
HTML listing for "Canvas Tree Page Layout"

An unpaired </div> tag follows the <canvas> element.

Note from the Author or Editor:
Simply remove the stray </div> after the canvas element.

P. Roebuck  Jul 19, 2011