In order to view and play with the Hack Pack coding console (IDE), please visit this page on a Mac, PC, or Chromebook.
Mobile and Tablets are currently not supported (sorry!).
Bonus Content Unlocked

OMNIBOT FORKLIFT

omnibot-forklift
Dive deeper into the OMNIBOT FORKLIFT and see how millis() can drive, lift, and dance right on cue.
void getDance(){
  unsigned long currentTime = millis() - strtTime;

  if(currentTime < 2000){
    vSpeed[0] = 0;
    vSpeed[1] = 1;
    vSpeed[2] = 0;
    moveFork = 1;
    return;
  }
  if(currentTime < 4000){
    vSpeed[0] = 0;
    vSpeed[1] = -1;
    vSpeed[2] = 0;
    moveFork = -1;
    return;
  }
  // ... additional dance phases omitted for brevity
}