Add checkpoint to logojs() and move back to it after finishing logo.

This commit is contained in:
Chris Ruppel 2013-01-27 14:12:25 -06:00
parent 5af256cd55
commit e7f4a5c99b

View file

@ -18,7 +18,8 @@ Drone.extend('logojs', function(fg, bg) {
bg = 41; bg = 41;
// Draw the sqaure // Draw the sqaure
this.up() this.chkpt('logojs-start')
.up()
.box(bg, 100, 100, 1); .box(bg, 100, 100, 1);
// Draw the J, starting with the hook // Draw the J, starting with the hook
@ -175,6 +176,8 @@ Drone.extend('logojs', function(fg, bg) {
.box(fg, 1, 3, 1) .box(fg, 1, 3, 1)
.right().up() .right().up()
.box(fg); .box(fg);
this.move('logojs-start')
}); });
// //
// Makes a cube of JS logos! // Makes a cube of JS logos!