Page 286 - Scratch Programming Playground
P. 286
maze-part-c.sb2, 46 programs, 18 Paint new sprite button, 20
maze.sb2, 49 sprites, 21–22 parabola, 170
maze-skeleton.sb2, 37 variables, 70 Pen blocks
menu bar, 5 new message option, 48, 78, change pen color by,
messages, broadcasting, 48, 150, 170 26−27
49, 99−100 150−151 next costume block, 76 clear, 26−27
Minecraft (game), 17 Nintendo, 209 pen down, 26–27
MIT Media Lab, 2 not block, 100, 156, 213, 217 pen up, 26–27
mod block, 236 set pen color to, 158
modulo operation, 236 O pick random block, 22, 23,
More Blocks category, 6, 157 offline editor, 4 78, 91
Motion blocks Operator blocks, 6 platformer games, 67, 209
change x by, 40, 41 + (addition), 169, 236−237 Platformer program
change y by, 40−41 / (division), 134, 169 adding crab enemies and
direction, 100 = (equal to), 86, 220 apples, 243−252
go to, 26 > (greater than), ceiling detection, 224–228
go to x y, 44 73−74, 205 creating gravity, 212–218
if on edge, bounce, 22 < (less than), 73−74, 84, creating level, 239–243
move steps, 10, 22 105, 112, 205, 223 designing, 210–211
point in direction, 23 * (multiplication), 134, handling slopes, 218–221
point towards, 24 169, 229 using a hitbox, 228–231
set rotation style, 98 - (subtraction), 100 walking animation,
set x to, 102–103, and, 84, 192 231–239
189, 193 floor, 236−237 platformer1.sb2, 216
set y to, 73, 189, 193, 216 mod, 236 PlatformerBackdrop.png, 239
turn clockwise degrees, not, 100, 156, 213, 217 PlatformerBackdropHitbox
114−115, 119−120 or, 220, 248, 249 .png, 241
turn counterclockwise pick random, 22, 23, platformer-skeleton.sb2, 211
degrees, 10, 90 78, 91 point in direction block, 23
x position, 189, 193, 195 or block, 220, 248, 249 point towards block, 24
y position, 73−74, 189, origin, 38 programs. See also names of
193, 195, 216 individual programs
mouse P Asteroid Breaker,
aiming with, 192 Pac-Man (game), 253 183−208
pointing toward, 24 Basketball, 67−92
mouse down? block, 156 Paint Editor, 6–8, 20 Brick Breaker, 93−124
Bitmap Mode, 166
mouse x block, 156 Brush tool, 20−21 Fruit Slicer, 145−182
mouse y block, 156 Ellipse tool, 77 Maze Runner, 35−66
move steps block, 10, 22 Eraser tool, 240 naming, 18
multiplication (*) block, 134, Fill tool, 51–52 Platformer, 209−254
169, 229 Rainbow Lines, 15−34
music, adding, 111 Line tool, 56 remixing, 13
Line width slider, 77 running, 10
N Rectangle tool, 79 saving, 5
Select tool, 7, 166, 240
naming Text tool, 106, 107 Snaaaaaake, 125−144
backdrops, 149 Vector Mode, 77 uploading, 37
lists, 152 Purho, Petri, 110
260 INDEX

