I’ve got quite a large list of things I wanted to fix in the lessons, but I’ve just made it three items shorter…

  1. murphy pointed out that modern browsers have built-in JSON libraries, so lesson 14 doesn’t need to import one. So that’s gone.
  2. The code that loaded textures was pretty ugly, creating separate globals for the image and the texture itself. I felt that the image should be a field of the texture object — so now it is, in all lessons back to #5.
  3. Finally, doug pointed out that my JavaScript objects in lesson 9 all had separate copies of their methods — that is, for each object, there was a completely different copy of the function stored in memory. The correct thing to do is to use a prototype, so now I do. Hopefully my explanation of JavaScript’s object model is finally correct…

One more thing: the demo for lesson 15 is now live — take a look and tell me what you think!