The Grownup Guide to Bitsbox

First Things First Info for Educators

So Long, Homework!

A simple app for kids to code, that lets them throw their homework into a black hole

This app puts a picture of a homework book on the screen. Without doing anything, the book spins and shrinks until it disappears into a black hole background image. A flushing sound effect plays while the book is disappearing.

1 fill('black hole')

Line 1 puts a background image of a black hole on the screen.

2 time = 3000

Line 2 creates a new variable called "time" and assigns it the value 3000.

Line 3 is left blank to create visual spacing in the code.

4 h = stamp('homework',500)

Line 4 stamps a homework book on the screen and assigns it the name "h".

5 h.rotate(1080,time)

Line 5 tells "h" (which is the book) to rotate.

6 h.size(0,time)

Line 6 tells "h" (which is the book) to change size.

7 sound('flush')

Line 7 plays a sound.