Errata

Building HTML5 Games with ImpactJS

Errata for Building HTML5 Games with ImpactJS

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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

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

Version Location Description Submitted by Date submitted
PDF Page 43
United States

if (!ig.game.collisionMap.getTile(this.pos.x + (this.flip ? +4 :
this.size.x - 4))) {
this.flip = !this.flip;
}

This causes zombie to constantly flip b/c it's validating when it's NOT colliding with collision tiles. Removing '!' fixes it.

Bradley Manderscheid  Sep 18, 2012