Details

Adventures in Minecraft


Adventures in Minecraft


Adventures in ... 2. Aufl.

von: David Whale, Martin O'Hanlon

16,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 26.10.2017
ISBN/EAN: 9781119439578
Sprache: englisch
Anzahl Seiten: 320

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Learn valuable programming skills while building your own Minecraft adventure!</b></p> <p>If you love playing Minecraft and want to learn how to code and create your own mods, this book was designed just for you. Working within the game itself, you'll learn to set up and run your own local Minecraft server, interact with the game on PC, Mac and Raspberry Pi, and develop Python programming skills that apply way beyond Minecraft. You'll learn how to use coordinates, how to change the player’s position, how to create and delete blocks and how to check when a block has been hit.</p> <p>The adventures aren't limited to the virtual – you'll also learn how to connect Minecraft to a BBC micro:bit so your Minecraft world can sense and control objects in the real world! The companion website gives you access to tutorial videos to make sure you understand the book, starter kits to make setup simple, completed code files, and badges to collect for your accomplishments. Written specifically for young people by professional Minecraft geeks, this fun, easy-to-follow guide helps you expand Minecraft for more exciting adventures, and put your personal stamp on the world you create. Your own Minecraft world will be unlike anyone else's on the planet, and you'll pick up programming skills that will serve you for years to come on other devices and projects. Among other things, you will:</p> <ul> <li>Write Minecraft programs in Python® on your Mac®, PC or Raspberry Pi®</li> <li>Build houses, structures, and make a 3D duplicating machine</li> <li>Build intelligent objects and program an alien invasion</li> <li>Build huge 2D and 3D structures like spheres and pyramids</li> <li>Build a custom game controller using a BBC micro:bit™</li> <li>Plan and write a complete interactive arena game</li> </ul> <p>Adventures in Minecraft teaches you how to make your favourite game even better, while you learn to program by customizing your Minecraft journey. </p>
<p><b>Introduction 1</b></p> <p>What Is Minecraft? 1</p> <p>The Virtual World 1</p> <p>How Did Minecraft Come About? 2</p> <p>What Is Minecraft Programming? 2</p> <p>Who Should Read This Book? 3</p> <p>What You Will Learn 4</p> <p>What We Assume You Already Know 5</p> <p>What You Will Need for the Projects 5</p> <p>A Note for Parents and Teachers 6</p> <p>Changes Made to the Second Edition 7</p> <p>How This Book Is Organised 7</p> <p>The Companion Website 9</p> <p>Other Sources of Help 9</p> <p>Conventions 10</p> <p>Reaching Out 12</p> <p><b>Adventure </b><b>1 Hello Minecraft World 13</b></p> <p>Setting Up Your Raspberry Pi to Program Minecraft 15</p> <p>Downloading the Starter Kit 16</p> <p>Starting Minecraft on Your Raspberry Pi 17</p> <p>Setting Up Your PC or Apple Mac to Program Minecraft 18</p> <p>Installing the Starter Kit and Python on Your Windows PC 19</p> <p>Installing the Starter Kit and Python on Your Apple Mac 21</p> <p>Starting Minecraft on Your Windows PC or Apple Mac 23</p> <p>Stopping the Minecraft Server 27</p> <p>Creating a Program 27</p> <p>Running a Program 30</p> <p>Stopping a Program 33</p> <p><b>Adventure </b><b>2 Tracking Your Players as They Move 35</b></p> <p>Sensing Your Player’s Position 36</p> <p>Getting Started 37</p> <p>Showing Your Player’s Position 39</p> <p>Tidying Up Your Position Display 41</p> <p>Using postToChat to Change Where Your Position Displays 43</p> <p>Introducing a Game Loop 43</p> <p>Building the Welcome Home Game 46</p> <p>Using if Statements to Make a Magic Doormat 46</p> <p>Checking if Your Player Is at a Particular Location 47</p> <p>Building a Magic Doormat 49</p> <p>Writing the Welcome Home Game 49</p> <p>Using Geo‐Fencing to Charge Rent 53</p> <p>Working Out the Corner Coordinates of the Field 54</p> <p>Writing the Geo‐Fence Program 56</p> <p>Moving Your Player 59</p> <p>Further Adventures in Tracking Your Player 62</p> <p><b>Adventure </b><b>3 Building Anything Automatically 65</b></p> <p>Creating Blocks 66</p> <p>Building More Than One Block 68</p> <p>Using for Loops 69</p> <p>Building Multiple Blocks with a for Loop 70</p> <p>Building a Huge Tower with a for Loop 71</p> <p>Clearing Some Space 73</p> <p>Using setBlocks to Build Even Faster 73</p> <p>Reading Input from the Keyboard 74</p> <p>Building a House 76</p> <p>Building More Than One House 82</p> <p>Using Python Functions 82</p> <p>Building a Street of Houses with a for Loop 86</p> <p>Adding Random Carpets 87</p> <p>Generating Random Numbers 88</p> <p>Laying the Carpets 89</p> <p>Further Adventures in Building Anything 92</p> <p><b>Adventure </b><b>4 Interacting with Blocks 95</b></p> <p>Finding Out What You Are Standing On 96</p> <p>Finding Out if Your Feet Are on the Ground 96</p> <p>Building Magic Bridges 99</p> <p>Using Python Lists as Magic Memory 102</p> <p>Experimenting with Lists 102</p> <p>Building Vanishing Bridges with a Python List 105</p> <p>Sensing That a Block Has Been Hit 109</p> <p>Writing a Treasure Hunt Game 112</p> <p>Writing the Functions and the Main Game Loop 113</p> <p>Placing Treasure in the Sky 114</p> <p>Collecting Treasure When It Is Hit 115</p> <p>Adding a Homing Beacon 116</p> <p>Adding Your Bridge Builder 117</p> <p>Further Adventures in Interacting with Blocks 119</p> <p><b>Adventure </b><b>5 Using Data Files 121</b></p> <p>Reading Data from a File 121</p> <p>Interesting Things You Can Do with Data Files 122</p> <p>Making a Hint‐Giver 122</p> <p>Building Mazes from a Data File 126</p> <p>Understanding CSV Files 127</p> <p>Building a Maze 128</p> <p>Building a 3D Block Printer 134</p> <p>Hand‐Crafting a Small Test Object to 3D Print 134</p> <p>Writing the 3D Printer 137</p> <p>Building a 3D Block Scanner 140</p> <p>Building a Duplicating Machine 144</p> <p>Writing the Framework of the Duplicating Machine Program 144</p> <p>Displaying the Menu 148</p> <p>Building the Duplicator Room 149</p> <p>Demolishing the Duplicator Room 149</p> <p>Scanning from the Duplicator Room 151</p> <p>Cleaning the Duplicator Room 152</p> <p>Printing from the Duplicator Room 153</p> <p>Listing Files 154</p> <p>Further Adventures in Data Files 157</p> <p><b>Adventure </b><b>6 Building 2D and 3D Structures 159</b></p> <p>The minecraftstuff Module 160</p> <p>Creating Lines, Circles and Spheres 161</p> <p>Drawing Lines 162</p> <p>Drawing Circles 164</p> <p>Drawing Spheres 165</p> <p>Creating a Minecraft Clock 166</p> <p>Drawing Polygons 172</p> <p>Pyramids 175</p> <p>Further Adventures with 2D and 3D Shapes 179</p> <p><b>Adventure </b><b>7 Giving Blocks a Mind of Their Own 181</b></p> <p>Your Block Friend 181</p> <p>Using Random Numbers to Make Your Block Friend More Interesting 188</p> <p>Bigger Shapes 191</p> <p>Alien Invasion 194</p> <p>Further Adventures in Simulation 200</p> <p><b>Adventure </b><b>8 Building a Game Controller with a BBC micro:bit 203</b></p> <p>What You Need for This Adventure 204</p> <p>What Is a BBC micro:bit? 204</p> <p>Understanding Inputs and Outputs 205</p> <p>Using Your BBC micro:bit as a Game Controller 206</p> <p>Setting Up Your Computer to Connect to Your BBC micro:bit 207</p> <p>Plugging In Your BBC micro:bit 207</p> <p>Loading the Game Controller Code onto Your BBC micro:bit 208</p> <p>Hello BBC micro:bit 209</p> <p>Sensing Button Presses 210</p> <p>Using Your BBC micro:bit Display 211</p> <p>The Magic Doormat Revisited 212</p> <p>Developing the Magic Doormat Program 212</p> <p>Designing Your Own Icon for the Display 213</p> <p>Making a Detonator 215</p> <p>Attaching a Banana to Your BBC micro:bit 215</p> <p>Sensing Touch Inputs 216</p> <p>Writing the Detonator Program 217</p> <p>Writing a Ball‐Rolling Game 220</p> <p>Building the Structure of the Program 221</p> <p>Adding a Button and a Countdown 224</p> <p>Building the Game 225</p> <p>Sensing Tilt Movements with Your BBC micro:bit 227</p> <p>Moving the Ball When You Tilt Your BBC micro:bit 230</p> <p>Collecting Items from the Table 232</p> <p>Finishing the Game Play 233</p> <p>Adding a Time Penalty for Falling into a Hole 234</p> <p>Further Adventures with Your BBC micro:bit Game Controller 236</p> <p><b>Adventure </b><b>9 The Big Adventure: Crafty Crossing 239</b></p> <p>A Game within a Game 239</p> <p>Part 1: Building the Arena 241</p> <p>Part 2: Creating the Obstacles 245</p> <p>The Wall 245</p> <p>Building the River 251</p> <p>Creating the Holes 254</p> <p>Part 3: Game Play 258</p> <p>Starting the Game 259</p> <p>Collecting Diamonds 261</p> <p>Out of Time 263</p> <p>Tracking the Player 265</p> <p>Setting the Level as Complete and Calculating Points 266</p> <p>Adding the Game Over Message 267</p> <p>Part 4: Adding a Button and Display 268</p> <p>Set Up the BBC micro:bit 268</p> <p>Countdown Clock 269</p> <p>Diamonds to Collect 270</p> <p>Further Adventures in Your Continuing Journey with Minecraft 271</p> <p><b>Appendix </b><b>A Where to Go from Here 273</b></p> <p>Websites 273</p> <p>Minecraft 273</p> <p>Python 275</p> <p>Others 276</p> <p>Other Ways to Make Things Happen Automatically 276</p> <p>Projects and Tutorials 277</p> <p>Videos 278</p> <p>Books 279</p> <p><b>Appendix </b><b>B</b></p> <p>Quick Reference 281</p> <p>Glossary 291</p> <p>Index 295</p>
<p><b>Martin O'Hanlon (Birmingham, UK)</b> describes himself as a professional geek and amateur snowboarder. Martin blogs about technology, Minecraft and Raspberry Pi at stuffaboutco.de. <p><b>David Whale (Essex, UK)</b> is a professional software engineer. He regularly volunteers for The Institution of Engineering and Technology, which provides support at many schools, public workshops and tech camps.
<p><b>Learn valuable programming skills while building your own Minecraft adventure!</b> <p>If you love playing Minecraft and want to learn how to code and create your own mods, this book was designed just for you. Working within the game itself, you'll learn to set up and run your own local Minecraft server, interact with the game on PC, Mac and Raspberry Pi, and develop Python programming skills that apply way beyond Minecraft. You'll learn how to use coordinates, how to change the player's position, how to create and delete blocks and how to check when a block has been hit. <p>The adventures aren't limited to the virtual—you'll also learn how to connect Minecraft to a BBC micro:bit so your Minecraft world can sense and control objects in the real world! The companion website gives you access to tutorial videos to make sure you understand the book, starter kits to make setup simple, completed code files, and badges to collect for your accomplishments. Written specifically for young people by professional Minecraft geeks, this fun, easy-to-follow guide helps you expand Minecraft for more exciting adventures and put your personal stamp on the world you create. Your own Minecraft world will be unlike anyone else's on the planet, and you'll pick up programming skills that will serve you for years to come on other devices and projects. Among other things, you will: <ul> <li>Write Minecraft programs in Python<sup>®</sup> on your Mac<sup>®</sup>, PC or Raspberry Pi<sup>®</sup></li> <li>Build houses, structures, and make a 3D duplicating machine</li> <li>Build intelligent objects and program an alien invasion</li> <li>Build huge 2D and 3D structures like spheres and pyramids</li> <li>Build a custom game controller using a BBC micro:bit<sup>™</sup></li> <li>Plan and write a complete interactive arena game</li> </ul> <p><i>Adventures in Minecraft</i> teaches you how to make your favourite game even better, while you learn to program by customizing your Minecraft journey.

Diese Produkte könnten Sie auch interessieren: