The Grownup Guide to Bitsbox
Dancin' Hal
This simple app puts a friendly robot on the screen. When kids tap it, it dances.
1 r = stamp('robot5',700)
Line 1 stamps a robot on the screen and assigns it the name "r".
- 'robot5' is the label of the robot graphic we want the app to use.
- 700 is the size of the robot on the screen, in pixels.
2 r.tap = dance
Line 2 tells "r" (which is the robot) to dance when it's tapped.
- The dance function is built into Bitsbox.
- pop, splash and explode are other built-in functions you can use here.