Details

Write Code Like a Pro


Write Code Like a Pro

Create Working Applications
1. Aufl.

von: Sarah Guthals

9,99 €

Verlag: Wiley
Format: EPUB
Veröffentl.: 01.12.2017
ISBN/EAN: 9781119404231
Sprache: englisch
Anzahl Seiten: 224

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

Beschreibungen

<p><b>CODERS ARE ROCK STARS</b></p> <p>Coders are the people who are building the future. You can stake your own claim on the future by learning pro coding techniques. Take a look inside to figure out how and why coders think a bit differently, the basics of building a working application with a professional coding language, and how to test your app to make sure it works. Get a jump on your future as a rock-star coder today!</p> <ul> <li><b>See the big picture</b> – get a grip on how pro coders start and finish a project</li> <li><b>Know the code</b> – get your hands on a pro coding language and put it to work</li> <li><b>Make things happen</b> – create a working application you can share with friends</li> </ul>
<p>Introduction xi</p> <p>About This Book xi</p> <p>Foolish Assumptions xii</p> <p>Icons Used in This Book xii</p> <p>Where to Go from Here xii</p> <p><b>Chapter 1: Getting Started with Java and Processing 1</b></p> <p>Getting Started with Processing 2</p> <p>Save and Reopen Processing Programs 9</p> <p><b>Chapter 2: Writing Your First Program 13</b></p> <p>Getting to Know the Canvas 14</p> <p>Calling Methods in Java 21</p> <p>Creating Variables 23</p> <p><b>Chapter 3: Drawing with Code 25</b></p> <p>Drawing a Triangle 26</p> <p>Drawing a Rectangle 30</p> <p>Drawing a Quadrilateral 32</p> <p>Drawing an Ellipse 34</p> <p>Drawing an Arc 36</p> <p>Creating a Unique Drawing 38</p> <p><b>Chapter 4: Adding Color to the Canvas 39</b></p> <p>Adding Color to Your Canvas 40</p> <p>Learning about RGB Values 43</p> <p>Adding Color to Shapes 45</p> <p><b>Chapter 5: Coding Your First Animation 51</b></p> <p>Learning about Methods 52</p> <p>Writing Your First Two Methods 54</p> <p>Writing Your First Two Original Methods 57</p> <p>Adding Parameters to Your Method 63</p> <p><b>Chapter 6: Allowing User Interaction 67</b></p> <p>Moving with the Mouse 68</p> <p>Interacting with Mouse Clicks 72</p> <p>Making a Horizontal Slider 74</p> <p>Working with Conditional Statements 75</p> <p>Moving Shapes with the Keyboard 79</p> <p><b>Chapter 7: Coding Your First Game 85</b></p> <p>Creating a Scene 86</p> <p>Adding a Character to Your Game 90</p> <p>Adding Movement to Your Videogame 96</p> <p>Updating the Background 99</p> <p>Adding Gravity to Your Videogame 101</p> <p>Making Lava Pits 104</p> <p><b>Chapter 8: Making Artificial Intelligence 111</b></p> <p>Adding an Enemy to Your Videogame 112</p> <p>Making the Enemy Move 114</p> <p>Creating Your Own Java Class 116</p> <p>Creating a Second Java Class 123</p> <p>Adding Health to Your Character 128</p> <p>Giving Your Enemies Collision Detection 131</p> <p><b>Chapter 9: Planning Your Ninja Bird Game 135</b></p> <p>Making Sense of the Flappy Bird Code 138</p> <p>Outlining Your Ninja Bird 140</p> <p>Designing Your Java Classes 141</p> <p><b>Chapter 10: Planning Your Ninja Bird Methods 147</b></p> <p>Designing Your Setup Method 148</p> <p>Designing Your Draw Method 151</p> <p>Designing Your Collision Methods 156</p> <p>Adding Helper Methods 159</p> <p><b>Chapter 11: Coding the Ninja Bird Basics 165</b></p> <p>Converting Comments to Code 166</p> <p><b>Chapter 12: Coding the Final Ninja Bird Code 191</b></p> <p>Adding Randomness to Your Pipes 192</p> <p>Detecting Collision 194</p> <p>Keeping Score in Your Game 201</p> <p>Cleaning Up the Code 208</p>
<p><b>Sarah Guthals</b>, Ph.D., has dedicated her life to coding education. She builds technology for kids to learn, create, and share safely online. She loves to help teachers demonstrate coding in the classroom, and she wishes she could teach her cats how to code!</p>
<p><b>CODERS ARE ROCK STARS</b> <p>Coders are the people who are building the future. You can stake your own claim on the future by learning pro coding techniques. Take a look inside to figure out how and why coders think a bit differently, the basics of building a working application with a professional coding language, and how to test your app to make sure it works. Get a jump on your future as a rock-star coder today! <ul> <li><b>See the big picture</b> – get a grip on how pro coders start and finish a project</li> <li><b>Know the code</b> – get your hands on a pro coding language and put it to work</li> <li><b>Make things happen</b> – create a working application you can share with friends</li> </ul>

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €