The Grownup Guide to Bitsbox

First Things First Info for Educators

BlockCraft

BlockCraft app

This app lets you draw on the screen to make cool 3D effects. Dragging on the screen draws with hundreds of little cubes. Tapping a cube makes it pop and disappear.

1 function drag() {

Line 1 creates a new block of code called drag() which tells the app what to do when you drag your cursor on the screen.

2 ink = stamp('cube3',x,y,75)

Line 2 puts a blue cube on the screen and assigns it the name "ink". The cube appears precisely where your cursor is touching the screen.

3 ink.tap = pop

Line 3 tells "ink" (which is the cube) to pop when it's tapped.

4 }

Line 4 uses a curly bracket } to indicate that this is the end of the drag() function which started on line 1.

5 fill('grid2')

Line 5 puts a background image of graph paper on the screen.