previous

page 24

next

This is what I'm aiming for →

So I set up two divs called panel1 and panel2.

I called the new canvas on the left panel, target.

Note that target doesn't require animation so we can just use the code from page 9.

function target() {
var nmbrs=g_pattern.split('');
for (var i=0;i<4;i++) {
for (var j=0;j<5;j++) {
for (var k=0;k<nmbrs[j];k++) fd();
rt();
}
}
}

The catch is - this will go to the right panel via g_ctx.

See the next page for my tricky solution.

previous
next