Table of Contents
Preface
Chapter 1: Welcome to Scratch!
Chapter 2: Installation
Chapter 3: Start Scratching
Chapter 4: Graphics and Slideshows
Chapter 5: Storytelling
Chapter 6: Arcade Games
Chapter 7: Games of Fortune
Chapter 8: Math and Finance
Chapter 9: Share!
Chapter 10: PicoBoard
Appendix: Scratch Resources
Index
- Chapter 1: Welcome to Scratch!
- What is Scratch?
- 21st century learning skills
- How to use Scratch
- Programming concepts
- Programming limitations
- Scratch anatomy
- Building blocks
- Write the script
- Watch the story
- Built-in image editor
- Interface promotes tinkering
- Learning Scratch
- Welcome to Scratch!—Chapter 1
- Installation—Chapter 2
- Start Scratching—Chapter 3
- Graphics and Slideshows—Chapter 4
- Storytelling—Chapter 5
- Arcade Games—Chapter 6
- Games of Fortune—Chapter 7
- Math and Finance—Chapter 8
- Share!—Chapter 9
- PicoBoard—Chapter 10
- Summary
- What is Scratch?
- Chapter 2: Installation
- Install Scratch
- Windows
- Run Scratch from flash drive
- Integrate Scratch with the PortableApps.com suite
- Installation on Macintosh
- Run Scratch on USB flash drive
- Installation on Linux
- Troubleshooting
- Limitations
- WINE and Scratch
- Windows
- Confirm Java install
- Redistribute Scratch freely
- Source code license
- Share alike
- Summary
- Install Scratch
- Chapter 3: Start Scratching
- The interface at a glance
- Time for action – first step
- Basics of a Scratch project
- We're all actors on Scratch's stage
- Time for action – save your work
- Set the cat in motion
- Time for action – a big step
- Coordinating a sprite's location
- Double-click control
- Time for action – in motion forever
- Loops play it again
- Time for action – get out of the corner
- Undo an action
- Add sprites to the stage
- Get new sprites
- Time for action – spin sprite spin
- Sometimes we need inspiration
- Browse Scratch's projects
- Time for action – spinner
- Costume versus background
- Time for action – broadcast a message
- Broadcast messages coordinate sprites
- Browse the Scratch community
- Time for action – create an account
- Abide by the terms of use
- Time for action – download a project
- Creative Commons
- Summary
- The interface at a glance
- Chapter 4: Graphics and Slideshows
- Happy birthday wishes
- Time for action – paint a happy birthday sprite
- Interface design
- Set the stage
- Time for action – paint the stage
- Adding gradients
- Sprite costumes
- Time for action – address the card
- Working with sprites
- Animating the card
- Time for action – hide all sprites
- Time for action – display happy birthday
- Sprite names
- Time for action – roll call
- Choose appropriate names
- Graphical transformations
- Time for action – give me an "M"
- Loop with repeat
- Incremental improvements
- Time for action – give me another "M"
- Time for action – set first M straight
- Beware of gaudiness
- Time for action – give mom flowers
- Ghosting an image
- Parallel execution
- Next steps
- Build a photo slideshow
- Time for action – insert a title screen
- Time for action – import photos from disk
- Image formats
- Working with images
- Resize images
- How to measure images
- Time for action – flip through the photos
- Building audience participation
- Time for action – present your show
- Next steps
- Summary
- Happy birthday wishes
- Chapter 5: Storytelling
- Barnyard humor
- Table of contents
- Time for action – create TOC
- Add pages to our book
- Time for action – add new pages
- Hide that sprite
- Time for action – hide the sprites
- Introducing the horse
- Time for action – import the horse
- Costumes versus sprites
- The horse speaks
- Time for action – the horse talks
- Synchronize the action
- Time for action – revise the horse talks exercise
- Sound
- Time for action – a horse whinnies
- Sound formats
- The dog enters
- Time for action – bring out the dog
- X and Y coordinates mark the spot
- Time for action – stay dog
- Position on the grid
- Pointed in the right direction
- Time for action – turn to the left
- Degrees of direction
- Sound effects
- Time for action – hit the cymbals
- Select an instrument
- Time for action – applause, please
- Play a note
- Piece the dog scene together
- Time for action – joke, please
- Control the story
- Time for action – hide TOC
- Time for action – enter dog
- Time for action – exit dog
- Time for action – show TOC
- Build sequence
- Next steps
- Summary
- Barnyard humor
- Chapter 6: Arcade Games
- Troll pong
- Time for action – pen the sample pong project
- Dynamic interaction
- Variables
- Time for action – change direction
- Time for action – remove the random turn
- Customize the sprites
- Time for action – beach ball pong
- Time for action – add new paddle controls
- Play theme music, forever
- Time for action – add background music
- Do something, forever
- Working with sound
- Forever, on one condition
- Time for action – paddle meets ball
- Start single stepping
- Conditional statements
- What's the score?
- Time for action – add a score variable
- For all sprites
- For this sprite only
- Time for action – count the paddle's steps
- Global versus local variables
- Add a second level
- Time for action – reach for a new level
- Comparisons
- Troubleshooting
- Time for action – fix the script
- Using Boolean logic
- Add levels
- Time for action – count the levels
- Time for action – enter project notes
- Next steps
- Summary
- Troll pong
- Chapter 7: Games of Fortune
- Fortune-Teller
- Time for action – create a list of questions
- Work with an item in a list
- Import a list
- Time for action – import a list of fortunes
- Reasons to import
- Export a list
- Your fortune is …
- Time for action – tell me a fortune
- Time for action – force a positive fortune
- Counters
- Keep track of intervals with mod
- If/Else
- Repeat the fortune
- Time for action – my fortune is what?
- Holding text in a variable
- Text entry limitations
- Next steps
- Summary
- Fortune-Teller
- Chapter 8: Math and Finance
- Double it or lump sum?
- Double it
- Time for action – calculate the double amount
- Time for action – set user-defined variables
- Start single stepping
- Time for action – slow it down
- Graph the values
- Time for action – set the graph’s origin
- Time for action – draw a graph
- Mathematical functions
- Create patterns with stamp
- Connect the dots
- Time for action – connect the dots
- Time for action – fix the graph
- Follow a sprite with the go to block
- Draw with the pen tool
- Time for action – draw the x and y axis of the grid
- Label the newAmount value
- Time for action – label newAmount
- Find the interest earned on a lump sum
- Time for action – calculate interest on lump sum
- Round to nearest whole number
- Next steps
- Summary
- Double it or lump sum?
- Chapter 9: Share!
- Share with the Scratch community
- Reduce file size
- Time for action – compress media files
- Share!
- Time for action – share!
- Tag it
- Update a project
- Trouble?
- Firefox display problems
- Variables change positions
- Link to your project
- Embed in a blog post
- Embed an applet or an image?
- Share via social networks
- Subscribe to projects via RSS
- How to subscribe
- Host your Scratch projects
- Install files to a web server
- Time for action – install files on a web server
- Limitations of self-hosting
- Summary
- Share with the Scratch community
- Chapter 10: PicoBoard
- PicoBoard—what is it?
- Order a PicoBoard
- Install the PicoBoard
- Connect the PicoBoard
- Capture sound input
- Time for action – switch backgrounds on sound
- Sound as a numeric value
- Time for action – use sound to change the sprite's looks
- Time for action – switch backgrounds on sound
- Click for the next slide
- Time for action – click for the next slide
- True or false values
- Time for action – wait until button not pressed
- Time for action – click for the next slide
- Step into the light, please
- Time for action
- Using light to detect motion
- Control motion with the slider
- Time for action – slide sensor
- Using gravity
- Create circuits
- Time for action – complete the circuit
- Wiring our projects
- Measure electrical resistance
- Time for action – measure resistance
- Using resistance
- Watch all sensor values
- Summary
- PicoBoard—what is it?



