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

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

برنامه‌نویسی بازی با کد آنجل: یاد بگیرید چگونه در پایتون بر روی رزبری پای یا کامپیوتر کد بنویسید

Game Programming with Code Angel : Learn How to Code in Python on Raspberry Pi or PC

Mark Cunningham

قیمت نهایی

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

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

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

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

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

مشخصات کتاب

نویسنده
Mark Cunningham
سال انتشار
۲۰۲۰
فرمت
PDF
زبان
انگلیسی
حجم فایل
۸٫۹ مگابایت

دربارهٔ کتاب

Program in Python on a Raspberry Pi or PC by developing six computer games. Each game project is split into several chapters of the book. Rather than taking you through programming techniques as standalone concepts, this book explains concepts as they are used within a game. You'll learn about variables; integer, real, Boolean and string data types; conditional if statements; fixed loops and conditional loops; modularity; arrays and lists; and predefined functions. You’ll also discover the PyGame library, which is popularly used in the development of 2D games. Key programming concepts are revisited in subsequent projects in the book to consolidate prior learning. Beyond teaching you how to code, this book explains the programming logic behind each project—exemplifying the process of designing and writing a computer game. All the projects in this book are supported by Code Angel (mycodeangel.com). Code Angel Code Angel largely serves students and new developers and the projects work by encouraging you to ‘Learn...then play’. Taking this approach, you'll be able to build fun 2D games and enjoy playing them by yourself or with friends. Developing games in this way keeps you engaged, gives a purpose as you work through each project, and offers a sense of achievement when each game is finished. **What You'll Learn** * Integrate the fundamentals of the Python 3 programming language * Program fun, classic computer games you can then play * Develop computational thinking skills and abilities that can be applied to other ventures **Who This Book Is For**Students, hobbyists, new developers or anyone wishing to learn how to design and write computer games. Table of Contents 5 About the Author 11 About the Technical Reviewer 12 Chapter 1: Introduction 13 Coding a game 15 Python and Pygame 16 Choosing an IDE 16 Python IDLE 16 Thonny 17 PyCharm Edu 17 Bugs and debugging 17 Common mistakes 18 Indentation 18 Variable and function names 19 Case 19 Brackets and quotes 19 Missing colons 20 Comments 20 Time to get started... 20 Chapter 2: Forest Bomber part 1: A first level 21 Getting started 21 Step 1: Set up the game environment 23 Step 2: Initialize variables 25 Score and lives 25 Forest list variable 28 Step 3: Display the background 30 Step 4: Draw the forest 32 Using math to calculate tree position 33 Deciding which trees to draw 34 Summary 36 Chapter 3: Forest Bomber part 2: Is it a bird...? 37 Step 5: Draw the plane 37 Step 6: Move the plane 39 Fly across the screen 39 Fly down the screen 41 Chapter 4: Forest Bomber part 3: Bombs away... 44 Step 7: Drop the bomb 45 Key presses 45 Move the bomb 48 Exploding trees 51 Ground level 53 Step 8: Game over/level up 54 Chapter 5: Forest Bomber part 4: Wrapping it up 59 Step 9: Display scoreboard and messages 60 Scoreboard background 60 Display the score 62 Display the level 63 Display the high score 64 Display messages 65 Chapter 6: Snapper part 1: In the woods 71 Getting started 71 Step 1: Set up the game environment 73 Step 2: Initialize variables 75 Boolean variables 75 Dictionaries 76 Step 3: Display the background 79 Chapter 7: Snapper part 2: Say cheese 81 Step 4: Draw and move the camera 82 The mouse pointer 82 Step 5: Show an animal 84 Using the dictionary 84 Step 6: Hide an animal 87 Setting a timer 88 Rectangles 90 Show another animal 91 Building a function 92 Chapter 8: Snapper part 3: Snapped 96 Step 7: Take a photograph 97 Rectangles collide 98 Snapped it! 100 Oops, missed! 101 Hit or miss? 102 Step 8: Game over 104 Step 9: Scoreboard 105 Chapter 9: Alien Invasion part 1: Under attack 109 Getting started 109 Step 1: Set up the game environment 111 Step 2: Initialize variables 114 Step 3: Display the background 116 Chapter 10: Alien Invasion part 2: Missile launch is Go 117 Step 4: Drive the base 117 Comparison operators 119 Step 5: Launch missile 120 Move the missile 122 Display missile 123 Logical operators 123 Chapter 11: Alien Invasion part 3: And they came from outer space 126 Step 6: Move UFOs 127 Stay on screen 129 Time for a change 130 Call the function 131 Display UFOs 131 Chapter 12: Save the planet 133 Step 7: Shoot UFOs 134 Catching some rays 138 Step 8: Game over 141 Step 9: Scoreboard 143 Chapter 13: Golf part 1: On the tee 145 Getting started 145 Step 1: Set up the game environment 146 Step 2: Initialize variables 149 Variable naming conventions 150 Constants 150 Step 3: Display background 151 Step 4: Display flag 152 Chapter 14: Golf part 2: On the green 154 Step 5: Power meter 154 Step 6: Move the ball 157 More about lists 159 Update ball location 161 Draw the ball 163 Chapter 15: Golf part 3: It’s in the hole 165 Step 7: In the hole 166 Joining strings 167 Drawing Pygame shapes 167 Centering text 168 Drawing Pygame text 169 In the hole message 169 Step 8: Scoreboard 171 Fixed loops 173 Display the scoreboard 174 Wrapping up 175 Index 176 Program in Python on a Raspberry Pi or PC by developing six computer games. Each game project is split into several chapters of the book. Rather than taking you through programming techniques as standalone concepts, this book explains concepts as they are used within a game. You'll learn about variables; integer, real, Boolean and string data types; conditional if statements; fixed loops and conditional loops; modularity; arrays and lists; and predefined functions. You’ll also discover the PyGame library, which is popularly used in the development of 2D games. Key programming concepts are revisited in subsequent projects in the book to consolidate prior learning. Beyond teaching you how to code, this book explains the programming logic behind each project—exemplifying the process of designing and writing a computer game. All the projects in this book are supported by Code Angel (mycodeangel.com). Code Angel Code Angel largely serves students and new developers and the projects work by encouraging you to ‘Learn...then play’. Taking this approach, you'll be able to build fun 2D games and enjoy playing them by yourself or with friends. Developing games in this way keeps you engaged, gives a purpose as you work through each project, and offers a sense of achievement when each game is finished. What You'll Learn Integrate the fundamentals of the Python 3 programming language Program fun, classic computer games you can then play Develop computational thinking skills and abilities that can be applied to other ventures Who This Book Is For Students, hobbyists, new developers or anyone wishing to learn how to design and write computer games. Program in Python on a Raspberry Pi or PC by developing six computer games. Each game project is split into several chapters of the book. Rather than taking you through programming techniques as standalone concepts, this book explains concepts as they are used within a game. You'll learn about variables; integer, real, Boolean and string data types; conditional if statements; fixed loops and conditional loops; modularity; arrays and lists; and predefined functions. You'll also discover the PyGame library, which is popularly used in the development of 2D games. Key programming concepts are revisited in subsequent projects in the book to consolidate prior learning. Beyond teaching you how to code, this book explains the programming logic behind each project-exemplifying the process of designing and writing a computer game. All the projects in this book are supported by Code Angel (mycodeangel.com). Code Angel Code Angel largely serves students and new developers and the projects work by encouraging you to 'Learn ... then play'. Taking this approach, you'll be able to build fun 2D games and enjoy playing them by yourself or with friends. Developing games in this way keeps you engaged, gives a purpose as you work through each project, and offers a sense of achievement when each game is finished Program in Python on a Raspberry Pi or PC by developing four computer games. Learn about variables; integer, real, Boolean and string data types; conditional if statements; fixed loops and conditional loops; modularity; arrays and lists; and predefined functions. You'll also discover the PyGame library, which is popularly used in the development of 2D games. Each game project is split into several chapters of the book. Rather than taking you through programming techniques as standalone concepts, this book explains concepts as they are used within a game. Key programming concepts are revisited in subsequent projects in the book to consolidate prior learning. Further to teaching you how to code, this book explains the programming logic behind each project-- exemplifying the process of designing and writing a computer game. All the projects in this book are supported by Code Angel (mycodeangel.com). Code Angel projects work by encouraging you to 'Learn ... then play'. Taking this approach, build fun 2D games and enjoy playing them by yourself or with friends. Developing games in this way keeps you engaged, gives a purpose as you work through each project, and offers a sense of achievement when each game is finished Front Matter ....Pages i-xiii Introduction (Mark Cunningham)....Pages 1-8 Forest Bomber part 1: A first level (Mark Cunningham)....Pages 9-24 Forest Bomber part 2: Is it a bird...? (Mark Cunningham)....Pages 25-31 Forest Bomber part 3: Bombs away... (Mark Cunningham)....Pages 33-47 Forest Bomber part 4: Wrapping it up (Mark Cunningham)....Pages 49-60 Snapper part 1: In the woods (Mark Cunningham)....Pages 61-70 Snapper part 2: Say cheese (Mark Cunningham)....Pages 71-85 Snapper part 3: Snapped (Mark Cunningham)....Pages 87-99 Alien Invasion part 1: Under attack (Mark Cunningham)....Pages 101-108 Alien Invasion part 2: Missile launch is Go (Mark Cunningham)....Pages 109-117 Alien Invasion part 3: And they came from outer space (Mark Cunningham)....Pages 119-125 Save the planet (Mark Cunningham)....Pages 127-138 Golf part 1: On the tee (Mark Cunningham)....Pages 139-147 Golf part 2: On the green (Mark Cunningham)....Pages 149-159 Golf part 3: It’s in the hole (Mark Cunningham)....Pages 161-171 Back Matter ....Pages 173-177

کتاب‌های مشابه

یادگیری برنامه‌نویسی رزبری پای با پایتون (ویرایش دوم)

یادگیری برنامه‌نویسی رزبری پای با پایتون (ویرایش دوم)

۴۹٬۰۰۰ تومان

راهنمای مبتدیان برای رزبری پای: یک راهنمای تصویری برای یادگیری درباره رزبری پای

راهنمای مبتدیان برای رزبری پای: یک راهنمای تصویری برای یادگیری درباره رزبری پای

۴۹٬۰۰۰ تومان

کلاستر رزبری پای ۳ برای استخراج استیم: ساخت یک ریگ استخراج با ۴۰ رزبری پای ۳: چگونه یک ریگ استخراج بیت‌کوین مبتنی بر رزبری پای بسازیم

کلاستر رزبری پای ۳ برای استخراج استیم: ساخت یک ریگ استخراج با ۴۰ رزبری پای ۳: چگونه یک ریگ استخراج بیت‌کوین مبتنی بر رزبری پای بسازیم

۴۹٬۰۰۰ تومان

هیجان‌زده درباره کدنویسی! - مقدمه‌ای بر کدنویسی با استفاده از نرم‌افزار اسکرچ ۲ بر روی کامپیوتر رزبری پای ۴

هیجان‌زده درباره کدنویسی! - مقدمه‌ای بر کدنویسی با استفاده از نرم‌افزار اسکرچ ۲ بر روی کامپیوتر رزبری پای ۴

۴۹٬۰۰۰ تومان

کودکان می‌توانند کد بنویسند، بزرگ‌ترها هم می‌توانند: ایجاد یک بازی ساده با استفاده از پایتون

کودکان می‌توانند کد بنویسند، بزرگ‌ترها هم می‌توانند: ایجاد یک بازی ساده با استفاده از پایتون

۴۹٬۰۰۰ تومان

مرجع سخت‌افزار رزبری پای: پوشش کامل سخت‌افزار رزبری پای

مرجع سخت‌افزار رزبری پای: پوشش کامل سخت‌افزار رزبری پای

۴۹٬۰۰۰ تومان

یادگیری برنامه‌نویسی Raspberry Pi با پایتون: یاد بگیرید چگونه بر روی کوچک‌ترین کامپیوتر محبوب جهان برنامه‌نویسی کنید

یادگیری برنامه‌نویسی Raspberry Pi با پایتون: یاد بگیرید چگونه بر روی کوچک‌ترین کامپیوتر محبوب جهان برنامه‌نویسی کنید

۴۹٬۰۰۰ تومان

آموزش رزبری پای ۲ با لینوکس و ویندوز ۱۰

آموزش رزبری پای ۲ با لینوکس و ویندوز ۱۰

۴۹٬۰۰۰ تومان

یادگیری رزبری پای با لینوکس (فناوری در عمل)

یادگیری رزبری پای با لینوکس (فناوری در عمل)

۴۹٬۰۰۰ تومان

یادگیری برنامه‌نویسی Raspberry Pi با پایتون: یاد بگیرید چگونه بر روی کوچک‌ترین کامپیوتر محبوب جهان برنامه‌نویسی کنید، ویرایش دوم

یادگیری برنامه‌نویسی Raspberry Pi با پایتون: یاد بگیرید چگونه بر روی کوچک‌ترین کامپیوتر محبوب جهان برنامه‌نویسی کنید، ویرایش دوم

۴۹٬۰۰۰ تومان

آزمایش با رزبری پای: پروژه‌های کم‌هزینه برای کمک به شما در تولید ایده‌ها، از تسلط بر رزبری پای

آزمایش با رزبری پای: پروژه‌های کم‌هزینه برای کمک به شما در تولید ایده‌ها، از تسلط بر رزبری پای

۴۹٬۰۰۰ تومان

رزبری پای: راهنمای پیشرفته برای راه‌اندازی، برنامه‌نویسی حرفه‌ای: (مفاهیم، نظریه‌ها و تکنیک‌ها) و ساخت پروژه‌های رزبری پای

رزبری پای: راهنمای پیشرفته برای راه‌اندازی، برنامه‌نویسی حرفه‌ای: (مفاهیم، نظریه‌ها و تکنیک‌ها) و ساخت پروژه‌های رزبری پای

۴۹٬۰۰۰ تومان

قیمت نهایی

۴۴٬۰۰۰ تومان