𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Scratch programming playground learn to program by making cool games

✍ Scribed by Sweigart, Al


Publisher
No Starch Press
Year
2016
Tongue
English
Leaves
292
Edition
Online-Ausg
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Scratch, the colorful drag-and-drop programming language, is used by millions of first-time learners, and inScratch Programming Playground, you'll learn to program by making cool games. Get ready to destroy asteroids, shoot hoops, and slice and dice fruit!

Each game includes easy-to-follow instructions, review questions, and creative coding challenges to make the game your own. Want to add more levels or a cheat code? No problem, just write some code.

You'll make games like:


Maze Runner: escape the maze!
Snaaaaaake: gobble apples and avoid your own tail
Asteroid Breaker: smash space rocks
Fruit Slicer: a Fruit Ninja clone
Brick Breaker: a remake of Breakout, the brick-breaking classic
Platformer: a game inspired by Super Mario Bros.
Learning how to program shouldn't be dry and dreary. WithScratch Programming Playground, you'll make a game of it!

✦ Table of Contents


Brief Contents......Page 9
Contents in Detail......Page 11
Acknowledgments......Page 19
Introduction......Page 21
Who This Book Is For......Page 22
About this Book......Page 23
How To Use This Book......Page 24
Errata and Updates......Page 25
1: Getting Started with Scratch......Page 27
Running Scratch......Page 29
The Scratch Editor and Sprites......Page 30
The Paint Editor......Page 32
Adding Blocks......Page 34
Deleting Blocks......Page 35
Running Programs......Page 36
Getting Help......Page 37
The Tips Window......Page 38
The See Inside Button......Page 39
Summary......Page 40
2: Rainbow Lines in Space!......Page 41
Sketch Out the Design......Page 42
1. Clean Up and Set the Stage......Page 44
2. Paint the Dot......Page 46
3. Add Code for the Dot 1 Sprite......Page 48
Explore: Direction and Degrees......Page 49
5. Add the Code for the Drawing Dot Sprite......Page 51
Turbo Mode......Page 54
Version 2.0: Rainbow Triangles......Page 55
Version 3.0: Two Rainbow Lines......Page 56
Version 4.0: You Decide!......Page 57
Summary......Page 58
Review Questions......Page 59
3: Maze Runner......Page 61
Sketch Out the Design......Page 62
Explore: X- and Y-Coordinates......Page 64
1. Add Movement Code to the Player Sprite......Page 66
2. Duplicate the Movement Code for the Cat Sprite......Page 67
5. Start at the First Maze......Page 69
6. Check Whether the Cat Is Touching the Walls......Page 70
D. Make a Goal at the End of the Maze......Page 72
8. Detect When the Player Reaches the Apple......Page 73
The Complete Program......Page 75
Duplicate the Apple Sprite......Page 77
Duplicate the Orange Cat Sprite......Page 78
Modify the Code for the Blue Cat Sprite......Page 79
Go Back to the Starting Position......Page 81
Draw a New Sprite for the Traps......Page 82
Create a Second Costume for the Traps......Page 83
Add Cloning Code for the Traps......Page 84
Modify the Orange Cat Code......Page 85
Copy the Code from Orange Cat to Blue Cat......Page 87
Cheat Mode: Walk Through Walls......Page 88
Add the Walk-Through-Walls Code to Blue Cat......Page 89
Summary......Page 90
Review Questions......Page 91
4: Shooting Hoops with Gravity......Page 93
Sketch Out the Design......Page 94
1. Add the Gravity Code to the Cat Sprite......Page 95
Explore: Fore all Sprites vs. Fore This Sprite Only......Page 97
2. Add the Ground Level Code......Page 99
3. Add the Jumping Code to the Cat Sprite......Page 100
B. Make the Cat Move Left and Right ......Page 101
4. Add the Walking Code to the Cat Sprite......Page 102
5. Create the Hoop Sprite......Page 103
6. Create the Hitbox Sprite......Page 105
7. Create the Basketball Sprite......Page 107
8. Add the Code for the Basketball Sprite......Page 108
9. Detect Whether a Basket Is Made......Page 109
10. Fix the Scoring Bug......Page 111
The Complete Program......Page 113
Duplicate the Cat and Basketball Sprites......Page 114
Modify the Code for the Cat2 Sprite......Page 115
Modify the Code for the Basketball2 Sprite......Page 116
Cheat Mode: Freeze the Hoop......Page 117
Review Questions......Page 118
5: A Polished Brick Breaker Game......Page 119
Sketch Out the Design......Page 120
1. Create the Paddle Sprite......Page 121
Explore: Rotation Styles......Page 123
2. Create the Tennis Ball Sprite......Page 124
3. Add the Bounce Code to the Tennis Ball Sprite......Page 125
Explore: Cloning......Page 127
5. Clone the BrickΒ Sprite......Page 128
6. Add the Bounce Code to the Brick Sprite......Page 130
7. Modify the Tennis Ball Sprite’s Code......Page 131
8. Create the Game Over Sprite......Page 132
9. Create the You Win Sprite......Page 133
The Complete Program......Page 134
Version 2.0: Polishing Time......Page 135
Draw a Cool Backdrop......Page 136
Add Music......Page 137
Add an Animated Entrance and Exit to the Bricks......Page 138
Add a Sound Effect to the Brick Exit......Page 141
Add a Trail Behind the Tennis Ball......Page 143
Add an Animated Entrance for the GameΒ OverΒ Sprite......Page 145
Add an Animated Entrance for the You Win Sprite......Page 146
Summary......Page 148
Review Questions......Page 149
6: Snaaaaaake!......Page 151
A. Make a Snake Head that Moves Around......Page 153
1. Create the Head Sprite......Page 154
Explore: when key pressed vs. if key pressed? then......Page 156
2. Add the Apple Sprite......Page 157
3. Create the Body Sprite......Page 158
5. Add the Code for the Body Sprite......Page 159
6. Detect Whether the Snake Crashes into Itself or a Wall......Page 161
The Complete Program......Page 163
Version 2.0: Add Bonus Fruit......Page 164
Modify the Head......Page 166
Modify the Body Code......Page 167
Summary......Page 168
Review Questions......Page 169
7: Fruit Slicer......Page 171
A. Make the Start Screen Backdrop......Page 173
_GoBack......Page 174
2. Add the Code for the Stage......Page 176
3. Draw the Slice Sprite......Page 177
Explore: Making Lists......Page 178
4. Create Lists and Variables for the Slice Sprite......Page 181
5. Record the Mouse Movements......Page 182
6. Make a Custom Block to Draw the Slice......Page 183
7. Create the Begin Button Sprite......Page 186
D. Make the Fruit and Bombs Throw Themselves......Page 188
8. Create the Fruit Sprite......Page 189
9. Make the Sliced Fruit Costumes......Page 190
10. Add the Code to the Fruit Sprite......Page 193
11. Add Code for the Fruit Sprite’s Clones......Page 196
12. Create the Health Sprite......Page 199
13. Create the White Fade Out Sprite......Page 202
Version 2.0: High Score......Page 205
Cheat Mode: Recover Health......Page 206
Summary......Page 207
Review Questions......Page 208
8: Asteroid Breaker . . . in Space!......Page 209
Sketch Out the Design......Page 210
1. Create the Spaceship Sprite......Page 212
2. Add the Wrap-Around Code to the Spaceship Sprite......Page 214
C. Aim with the Mouse and Fire with the Spacebar......Page 216
4. Create the Energy Blast Sprite......Page 217
5. Create the Asteroid Sprite......Page 220
6. Add the Asteroid’s Splitting Code......Page 222
7. Add the Asteroid Blasted Message Code to the Energy Blast Sprite......Page 224
8. Create the Out of Time Sprite......Page 225
G. Make the Spaceship Explode if It Is Hit......Page 226
10. Add the Code for the Explosion Sprite......Page 227
11. Add the Explode Code to the Spaceship Sprite......Page 228
Version 2.0: Limited Ammo......Page 230
Cheat Mode: Starburst Bomb......Page 232
Summary......Page 233
Review Questions......Page 234
9: Making an Advanced Platformer......Page 235
Sketch Out the Design......Page 236
1. Create the Ground Sprite......Page 238
2. Add the Gravity and Landing Code......Page 239
3. Make the Cat Walk and Wrap Around the Stage......Page 241
4. Remove the Ground Lift Delay......Page 242
5. Add the Steep Slope Code......Page 244
6. Add the Jumping Code......Page 248
7. Add a Low Platform to the Ground Sprite......Page 250
8. Add the Ceiling Detection Code......Page 251
E. Use a Hitbox for the Cat Sprite......Page 254
9. Add a Hitbox Costume to the Cat Sprite......Page 255
10. Add the Hitbox Code......Page 256
F. Add a Better Walking Animation......Page 257
11. Add the New Costumes to the Cat Sprite......Page 258
12. Create the Set Correct Costume Block......Page 259
13. Download and Add the Stage Backdrop......Page 265
14. Create a Hitbox Costume for the Ground Sprite......Page 266
15. Add the Ground Sprite’s Code......Page 267
16. Add More Wrap-Around Code to the Cat Sprite......Page 268
H. Add Crab Enemies and Apples......Page 269
17. Add the Apple Sprite and Code......Page 270
18. Create the Crab Sprite......Page 271
19. Create the Enemy Artificial Intelligence......Page 272
20. Add the Time’s Up Sprite......Page 276
Summary......Page 278
_GoBack......Page 279
Where To Go From Here......Page 281
Index......Page 283
SPP_154.pdf......Page 0

✦ Subjects


Computer Science;Coding;Nonfiction;Programming


πŸ“œ SIMILAR VOLUMES


Scratch Programming Playground: Learn to
✍ Al Sweigart πŸ“‚ Library πŸ“… 2016 πŸ› No Starch Press 🌐 English

Scratch, the colorful drag-and-drop programming language, is used by millions of first-time learners, and in <i>Scratch Programming Playground</i>, you’ll learn to program by making cool games. Get ready to destroy asteroids, shoot hoops, and slice and dice fruit!<br><br>Each game includes easy-to-f

Super Scratch Programming Adventure!: Le
✍ The LEAD Project πŸ“‚ Library πŸ“… 2012 πŸ› No Starch Press 🌐 English

<DIV><p>Scratch is the wildly popular educational programming language used by millions of first-time learners in classrooms, libraries, and homes worldwide. By dragging together colorful blocks of code, kids quickly learn computer programming concepts and make cool games and animations.</p><p>In <i

Super Scratch Programming Adventure!: Le
✍ The LEAD Project πŸ“‚ Library πŸ“… 2012 πŸ› No Starch Press 🌐 English

<DIV><p>Scratch is the wildly popular educational programming language used by millions of first-time learners in classrooms, libraries, and homes worldwide. By dragging together colorful blocks of code, kids quickly learn computer programming concepts and make cool games and animations.</p><p>In <i

Super Scratch Programming Adventure!: Le
✍ The LEAD Project πŸ“‚ Library πŸ“… 2013;2012 πŸ› No Starch Press 🌐 English

Foreword; A Note of Thanks; A Note for Parents and Educators; But What Is Scratch, Anyway?; Where Did the Name ScratchCome From?; Who Created Scratch?; Who Is Scratch For?; Is It Easy to Use Scratch?; How Many Languages Does Scratch Support?; Where Can You Use Scratch?; How Can Scratch Be Used to Ed

Super Scratch Programming Adventure!: Le
✍ The LEAD Project πŸ“‚ Library πŸ“… 2013;2012 πŸ› No Starch Press 🌐 English

Foreword; A Note of Thanks; A Note for Parents and Educators; But What Is Scratch, Anyway?; Where Did the Name ScratchCome From?; Who Created Scratch?; Who Is Scratch For?; Is It Easy to Use Scratch?; How Many Languages Does Scratch Support?; Where Can You Use Scratch?; How Can Scratch Be Used to Ed