چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

Scratch Programming Playground : Learn to Program by Making Cool Games

Al Sweigart

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

نویسنده
Al Sweigart
سال انتشار
۲۰۱۶
فرمت
PDF
زبان
انگلیسی
حجم فایل
۴۷٫۲ مگابایت
شابک
9781593277628، 9781593277963، 1593277628، 1593277962

دربارهٔ کتاب

Scratch, the colorful drag-and-drop programming language, is used by millions of first-time learners, and in Scratch 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 learn to 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. With Scratch Programming Playground , you’ll make a game of it! Uses Scratch 2 Brief Contents 9 Contents in Detail 11 Acknowledgments 19 Introduction 21 Who This Book Is For 22 About this Book 23 How To Use This Book 24 Online Resources 25 Errata and Updates 25 1: Getting Started with Scratch 27 Running Scratch 29 The Offline Editor 30 The Scratch Editor and Sprites 30 The Paint Editor 32 Working with Code Blocks 34 Adding Blocks 34 Deleting Blocks 35 Running Programs 36 Showing Off Your Programs 37 Getting Help 37 The Tips Window 38 The See Inside Button 39 Summary 40 2: Rainbow Lines in Space! 41 Sketch Out the Design 42 A. Create the Space Backdrop 44 1. Clean Up and Set the Stage 44 B. Create Three Bouncing Dots 46 2. Paint the Dot 46 3. Add Code for the Dot 1 Sprite 48 Explore: Direction and Degrees 49 4. Duplicate the Dot 1 Sprite 51 C. Draw the Rainbow Lines 51 5. Add the Code for the Drawing Dot Sprite 51 The Complete Program 54 Turbo Mode 54 Version 2.0: Rainbow Triangles 55 Version 3.0: Two Rainbow Lines 56 Version 4.0: You Decide! 57 Summary 58 Review Questions 59 3: Maze Runner 61 Sketch Out the Design 62 A. Make the Cat Walk Around 64 Explore: X- and Y -Coordinates 64 1. Add Movement Code to the Player Sprite 66 2. Duplicate the Movement Code for the Cat Sprite 67 B. Make the Maze Levels 69 3. Download the Maze Images 69 4. Change the Backdrop 69 5. Start at the First Maze 69 C. Keep the Cat from Walking Through Walls 70 6. Check Whether the Cat Is Touching the Walls 70 D. Make a Goal at the End of the Maze 72 7. Create the Apple Sprite 73 8. Detect When the Player Reaches the Apple 73 9. Add the Broadcast Handling Code to the Maze Sprite 75 The Complete Program 75 Version 2.0: Two-Player Mode 77 Duplicate the Apple Sprite 77 Modify the Apple2 Sprite’s Code 78 Duplicate the Orange Cat Sprite 78 Modify the Code for the Blue Cat Sprite 79 Go Back to the Starting Position 81 Version 3.0: Traps 82 Draw a New Sprite for the Traps 82 Create a Second Costume for the Traps 83 Add Cloning Code for the Traps 84 Modify the Orange Cat Code 85 Copy the Code from Orange Cat to Blue Cat 87 Cheat Mode: Walk Through Walls 88 Add the Walk-Through-Walls Code to Orange Cat 89 Add the Walk-Through-Walls Code to Blue Cat 89 Summary 90 Review Questions 91 4: Shooting Hoops with Gravity 93 Sketch Out the Design 94 A. Make the Cat Jump and Fall 95 1. Add the Gravity Code to the Cat Sprite 95 Explore: Fore all Sprites vs. Fore This Sprite Only 97 2. Add the Ground Level Code 99 3. Add the Jumping Code to the Cat Sprite 100 B. Make the Cat Move Left and Right 101 4. Add the Walking Code to the Cat Sprite 102 C. Make a Hovering Basketball Hoop 103 5. Create the Hoop Sprite 103 6. Create the Hitbox Sprite 105 D. Make the Cat Shoot Hoops 107 7. Create the Basketball Sprite 107 8. Add the Code for the Basketball Sprite 108 9. Detect Whether a Basket Is Made 109 10. Fix the Scoring Bug 111 The Complete Program 113 Version 2.0: Two-Player Mode 114 Duplicate the Cat and Basketball Sprites 114 Modify the Code for the Cat2 Sprite 115 Modify the Code for the Basketball2 Sprite 116 Cheat Mode: Freeze the Hoop 117 Summary 118 Review Questions 118 5: A Polished Brick Breaker Game 119 Sketch Out the Design 120 A. Make a Paddle that Moves Left and Right 121 1. Create the Paddle Sprite 121 Explore: Rotation Styles 123 B. Make a Ball that Bounces Off the Walls 124 2. Create the Tennis Ball Sprite 124 C. Make the Ball Bounce Off the Paddle 125 3. Add the Bounce Code to the Tennis Ball Sprite 125 Explore: Cloning 127 D. Make Clones of the Brick 128 4. Add the Brick Sprite 128 5. Clone the Brick Sprite 128 E. Make the Ball Bounce Off Bricks 130 6. Add the Bounce Code to the Brick Sprite 130 F. Make “You Win” and “Game Over” Messages 131 7. Modify the Tennis Ball Sprite’s Code 131 8. Create the Game Over Sprite 132 9. Create the You Win Sprite 133 The Complete Program 134 Version 2.0: Polishing Time 135 Draw a Cool Backdrop 136 Add Music 137 Make the Paddle Flash When Hit 138 Add an Animated Entrance and Exit to the Bricks 138 Add a Sound Effect to the Brick Exit 141 Add a Sound Effect to the Tennis Ball 143 Add a Trail Behind the Tennis Ball 143 Add an Animated Entrance for the Game Over Sprite 145 Add an Animated Entrance for the You Win Sprite 146 Summary 148 Review Questions 149 6: Snaaaaaake! 151 Sketch Out the Design 153 A. Make a Snake Head that Moves Around 153 1. Create the Head Sprite 154 Explore: when key pressed vs. if key pressed? then 156 B. Make Apples Appear 157 2. Add the Apple Sprite 157 C. Make a Body that Appears Behind the Snake Head 158 3. Create the Body Sprite 158 4. Create the Body Sprite’s Second Costume 159 5. Add the Code for the Body Sprite 159 6. Detect Whether the Snake Crashes into Itself or a Wall 161 The Complete Program 163 Version 2.0: Add Bonus Fruit 164 Cheat Mode: Invincibility 166 Modify the Head 166 Modify the Body Code 167 Cheat Mode: Chop Off Your Tail! 168 Summary 168 Review Questions 169 7: Fruit Slicer 171 Sketch Out the Design 173 A. Make the Start Screen Backdrop 173 1. Draw the Backdrops 174 2. Add the Code for the Stage 176 B. Make the Slice Trail 177 3. Draw the Slice Sprite 177 Explore: Making Lists 178 4. Create Lists and Variables for the Slice Sprite 181 5. Record the Mouse Movements 182 6. Make a Custom Block to Draw the Slice 183 C. Make the Begin Button 186 7. Create the Begin Button Sprite 186 D. Make the Fruit and Bombs Throw Themselves 188 8. Create the Fruit Sprite 189 9. Make the Sliced Fruit Costumes 190 10. Add the Code to the Fruit Sprite 193 11. Add Code for the Fruit Sprite’s Clones 196 E. Make the Health Sprites 199 12. Create the Health Sprite 199 F. Make the End Game Sprite 202 13. Create the White Fade Out Sprite 202 Version 2.0: High Score 205 Cheat Mode: Recover Health 206 Summary 207 Review Questions 208 8: Asteroid Breaker . . . in Space! 209 Sketch Out the Design 210 A. Make a Spaceship That Is Pushed Around 212 1. Create the Spaceship Sprite 212 B. Make the Spaceship wrap Around the Edges 214 2. Add the Wrap-Around Code to the Spaceship Sprite 214 3. Add the Random-Push Code to the Spaceship Sprite 216 C. Aim with the Mouse and Fire with the Spacebar 216 4. Create the Energy Blast Sprite 217 D. Make Asteroids That Float Around 220 5. Create the Asteroid Sprite 220 E. Make Asteroids Split in Two When Hit 222 6. Add the Asteroid’s Splitting Code 222 7. Add the Asteroid Blasted Message Code to the Energy Blast Sprite 224 F. Keep Score and Make a Timer 225 8. Create the Out of Time Sprite 225 G. Make the Spaceship Explode if It Is Hit 226 9. Upload the Explosion Sprite 227 10. Add the Code for the Explosion Sprite 227 11. Add the Explode Code to the Spaceship Sprite 228 Version 2.0: Limited Ammo 230 Cheat Mode: Starburst Bomb 232 Summary 233 Review Questions 234 9: Making an Advanced Platformer 235 Sketch Out the Design 236 A. Create Gravity, Falling, and Landing 238 1. Create the Ground Sprite 238 2. Add the Gravity and Landing Code 239 3. Make the Cat Walk and Wrap Around the Stage 241 4. Remove the Ground Lift Delay 242 B. Handle Steep Slopes and Walls 244 5. Add the Steep Slope Code 244 C. Make the Cat Jump High and Low 248 6. Add the Jumping Code 248 D. Add Ceiling Detection 250 7. Add a Low Platform to the Ground Sprite 250 8. Add the Ceiling Detection Code 251 E. Use a Hitbox for the Cat Sprite 254 9. Add a Hitbox Costume to the Cat Sprite 255 10. Add the Hitbox Code 256 F. Add a Better Walking Animation 257 11. Add the New Costumes to the Cat Sprite 258 12. Create the Set Correct Costume Block 259 G. Create the Level 265 13. Download and Add the Stage Backdrop 265 14. Create a Hitbox Costume for the Ground Sprite 266 15. Add the Ground Sprite’s Code 267 16. Add More Wrap-Around Code to the Cat Sprite 268 H. Add Crab Enemies and Apples 269 17. Add the Apple Sprite and Code 270 18. Create the Crab Sprite 271 19. Create the Enemy Artificial Intelligence 272 20. Add the Time’s Up Sprite 276 Summary 278 Review Questions 279 Where To Go From Here 281 Index 283 SPP_9.pdf -1 _GoBack 279 SPP_154.pdf -1 _GoBack 174 Scratch, the colorful drag-and-drop programming language, is used by millions of first-time learners, and in __Scratch 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 learn to 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. With __Scratch Programming Playground__, you’ll make a game of it!**Uses Scratch 2** Learning how to program shouldn't be dry and dreary. With help from this easy-to-understand guide, you'll make a game of it by using Scratch, the colorful drag-and-drop programming language. Get ready to destroy asteroids, shoot hoops, and slice and dice fruit! -- Edited summary from book An introduction to the colorful drag-and-drop programming language shares numerous projects that use engaging video games, from Maze Runner to Breakout, to introduce programming fundamentals and basic coding

قیمت نهایی

۴۴٬۰۰۰ تومان