
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
دانش پایه پایتون خود را گسترش دهید و با پایگیم بازیهای ویدیویی پرسرعت با گرافیک و صدای عالی بسازید. این ویرایش دوم نشان میدهد چطور میتوانید قطعات الکترونیکی را با بازیهایتان ترکیب کنید. با پینهای ورودی/خروجی همهمنظورهٔ داخلی (GPIO) و کمی کد پایتون، دو بازی جدید میسازید.
با برنامهنویسی شیءگرا (OOP) و الگوهای طراحی مثل مدل-نمایش-کنترلر (MVC) و ماشینهای حالت محدود (FSM) آشنا میشوید. فرقی نمیکند از ویندوز، مکاواس، لینوکس یا رزبری پای استفاده کنید؛ میتوانید قدرت پایتون و پایگیم را برای ساخت بازیهای زیبا به کار بگیرید.
کتاب همچنین فهرست کامل کد و توضیح سه بازی کاملاً آماده را دارد: «Bricks»، «Snake» و «Invaders». با اینها میتوانید ساخت بازیهای خودتان را شروع کنید، بعد آنها را تغییر دهید یا عنوانهای هیجانانگیز خودتان را بسازید. مفاهیم با بازیهایی مثل «Copycat» هم بیشتر توضیح داده میشوند؛ جایی که بازیکن باید تمرکز کند و توالی نورها و صداها را تکرار کند. در «Couch Quiz» هم پایگیم و قطعات الکترونیکی یک بازی پرسش و پاسخ برای ۲ تا ۴ بازیکن میسازند.
آنچه یاد میگیرید
• دانش پایه پایتون را بهدست آورید و آن را در توسعه بازی به کار ببرید
• پروژههای بازی مثل Bricks، Snake و Invaders را بررسی کنید که میتوانید بهعنوان قالب استفاده کنید
• با توابع تعریفشده توسط کاربر، وراثت، ترکیب و تجمیع کار کنید
• ماشینهای حالت محدود را پیادهسازی کنید
• بازیتان را با الکترونیک و از طریق پینهای GPIO یکپارچه کنید
این کتاب برای چه کسانی است
برنامهنویسان باتجربه یا توسعهدهندگان بازی که تازه با پایتون، پایگیم و رزبری پای آشنا میشوند، از این کتاب بهره میبرند. برای مبتدیانی که میخواهند وارد دنیای توسعه بازی شوند هم مناسب است.
Expand your basic knowledge of Python and use PyGame to create fast-paced video games with great graphics and sounds. This second edition shows how you can integrate electronic components with your games using the build-in general purpose input/output (GPIO) pins and some Python code to create two new games.You'll learn about object-oriented programming (OOP) as well as design patterns, such as model-view-controller (MVC) and finite-state machines (FSMs). Whether using Windows, macOS, Linux, or a Raspberry Pi, you can unleash the power of Python and PyGame to create great looking games.The book also includes complete code listings and explanations for "Bricks," "Snake," and "Invaders"―three fully working games. These allow you to get started in making your own great games and then modify them or build your own exciting titles. The concepts are further explained using games such as “Copycat,” where the player must concentrate and repeat the sequence of lights and sounds, and “Couch Quiz,” in which PyGame and electronic components create a quiz game for 2–4 players.What You’ll Learn• Gain basic knowledge of Python and employ it for game development• Study game projects you can use as templates, such as Bricks, Snake, and Invaders• Work with user-defined functions, inheritance, composition, and aggregation• Implement finite state machines• Integrate your game with electronics using the GPIO pinsWho This Book Is ForExperienced coders or game developers new to Python, PyGame and Raspberry Pi would find this book helpful. It is also for beginners interested in getting into game development.