Notes to Lesson 8b

Again, you can cut down on code somewhat by putting the movement inside a php loop:

for($i=0; $i<23; $i++){

The above loop replaces all of the lines of movement, as in Lesson 8a, with the rotation added. This time I added more frames to the loop and moved the square half as much for a smoother spin.

Below is the php code for the same lesson using the loop.