Scratch Programming Playground: Learn to Program by Making Cool Games
For Seymour Papert So long and thanks for all the turtles February 29 1928 July 31 2016
About the Author Al Sweigart is a software developer tech book author and hoopy frood who really knows where his towel is He has written several programming books for beginners including Automate the Boring Stuff with Python also from No Starch Press His books are freely available under a Creative Com mons license at his website http www inventwithpython com About the Technical Reviewer Martin Tan helps run a Code Club in Australia and he wrote the space-themed Scratch and Python projects for Moonhack 2016 that brought over 9,000 kids together to break the world record for children coding simultaneously Martin also works as a penetration tester contributing to various open source projects and research
BRIEF CONTENTS Acknowledgments xvii Introduction xix Chapter 1 Getting Started with Scratch 1 Chapter 2 Rainbow Lines in Space 15 Chapter 3 Maze Runner 35 Chapter 4 Shooting Hoops with Gravity 67 Chapter 5 A Polished Brick Breaker Game 93 Chapter 6 Snaaaaaake 125 Chapter 7 Fruit Slicer 145 Chapter 8 Asteroid Breaker in Space 183 Chapter 9 Making an Advanced Platformer 209 Where to Go from Here 255 Index 257
CONTENTS IN DETAIL Acknowledgments xvii Introduction xix Who This Book Is For xx About This Book xxi How to Use This Book xxii Online Resources xxiii Errata and Updates xxiii 1 Getting Started with Scratch 1 Running Scratch 3 The Offline Editor 4 The Scratch Editor and Sprites 4 The Paint Editor 6 Working with Code Blocks 8 Adding Blocks 8 Deleting Blocks 9 Running Programs 10 Showing Off Your Programs 11 Getting Help 11 The Tips Window 12 The See Inside Button 13 Summary 14 2 Rainbow Lines in Space 15 Sketch Out the Design 16 A Create the Space Backdrop 18 1 Clean Up and Set the Stage 18 B Create Three Bouncing Dots 20 2 Paint the Dot 20 3 Add Code for the Dot 1 Sprite 22 Explore Directions and Degrees 23 4 Duplicate the Dot 1 Sprite 25 C Draw the Rainbow Lines 25 5 Add the Code for the Drawing Dot Sprite 25