
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
ضمن یادگیری کدنویسی، بازیهای سرگرمکنندهای بسازید. این کتاب به جای آموزش تئوری برنامهنویسی، بر ساخت بازی تمرکز دارد؛ بنابراین در اینجا بیشتر کدهایی درباره تأثیر جاذبه بر مسیر حرکت موشک میبینید تا کارآمدترین روش جستجو در دادهها. حتی در این حالت هم کدها ساده نگه داشته میشوند، زیرا بازیها باید بیشتر درباره قابلیت بازی کردن باشند تا فیزیک پیچیده. هر زمان که به اطلاعاتی نیاز داشتید که در کتاب نیامده است، پیوندهایی به مستندات رسمی وجود دارد.
با یک بازی متنی ساده شروع کنید تا اصول اولیه برنامهنویسی در پایتون را یاد بگیرید. سپس به سراغ ساخت بازیهای گرافیکی ساده در Pygame Zero بروید. شما نه تنها برنامهنویسی شیءگرا را برای ساخت آسانتر بازیهای پیچیده یاد میگیرید، بلکه برای خلق گرافیک و صداهای مختص خودتان هم تلاش خواهید کرد. گرافیک سهبعدی کمی پیچیده است، بنابراین ما روی بازیهای دوبعدی تمرکز میکنیم؛ از جمله نسخههایی از بازیهای رومیزی و آرکید کلاسیک. تمام این بازیها برای اجرا روی رزبری پای طراحی شدهاند. آنها روی هر مدل رزبری پای و همچنین هر رایانه دیگری که از پایتون ۳ و Pygame Zero پشتیبانی کند، کار میکنند.
بازیهایی که میسازید قابل بازی خواهند بود و امیدواریم سرگرمکننده باشند. تا پایان کتاب، میتوانید فراتر از کدهای منبع ارائهشده بروید و بازیها و برنامههای منحصربهفرد خود را توسعه دهید.
آنچه خواهید آموخت:
کدنویسی با پایتون
تولید صدا و گرافیک برای بازیهای دوبعدی
درک برنامهنویسی شیءگرا با Pygame Zero
این کتاب برای چه کسانی است:
توسعهدهندگان تازهکار بازی که علاقهمند به کار با راه حلهای کمهزینه و ساده مانند Pygame Zero و رزبری پای هستند.
Make fun games while learning to code. Focused on making games rather than teaching programming theory, in this book you're more likely to see code on how gravity affects a missiles trajectory instead of the most efficient way to search through data. Even then the code is kept simple as games should be about playability rather than complex physics. There are links to the official documentation when you need to lookup information that isn't included in the book.Start with a simple text based game to grasp the basics of programming in Python. Then moves on to creating simple graphical games in Pygame Zero. Not only will you learn object oriented programming to make it easier to make more complex games, you'll also work to create your own graphics and sounds. 3D graphics are a little complex. So we focus on 2D games, including spins on some classic boardgames and arcade games. All the games are designed to run on a Raspberry Pi. They will work on any Raspberry Pi, but will also work on any other computer that supports Python 3 along with Pygame Zero.The games you make will be playable and hopefully fun to play. And by the end of the book, you can step beyond the provided source code to develop your own unique games and programs.What You'll Learn Code in Python Generate sounds and graphics for 2D games Grasp object oriented programming with Pygame ZeroWho This Book Is For Beginning game developers interested in working with low-cost and easy-to-learn solutions like Pygame Zero and the Raspberry Pi.