Название: Game Dev Cookbook: Recreate mechanics and ideas from dozens of classic video games using Python and Pygame Zero Автор: Ryan Lambie (Editor) Издательство: Raspberry Pi Press Год: 2022 Страниц: 97 Язык: английский Формат: pdf (true) Размер: 41.4 MB
Replicate the mechanics and ideas from dozens of classic games with the Game Dev Cookbook.
Using the listings contained within, you’ll be able to get sprites moving around the screen, create simple physics simulations for everything from spaceships to ricocheting balls to swinging ropes over deadly pits.
Re-create the pioneering boss battle from Phoenix, Boulderdash’s falling rocks, Super Sprint’s top-down racing, and so much more in Python and Pygame Zero with the Game Dev Cookbook - from the creators of Wireframe magazine.
Learning to program can be an intimidating proposition at the best of times, but if there’s one way of making the process feel a bit friendlier, it’s learning to code by making games. It was something magazine publishers understood in the eighties, when it was quite common to see long listings that would have to be painstakingly typed in, one line at a time. The results were frequently mixed – a jerky Space Invaders clone here, an off-brand version of Pac-Man there – but the process of typing those listings in (and often debugging them) helped a generation of computer users understand the basics of programming.
Source Code, one of the regular features you’ll find in Wireframe magazine, works on a similar principle – but because it’s the 21st century and the internet exists, you don’t have to type everything in if you don’t want to. Head to our Github (wfmag.cc/git) and you’ll find an archive of every project we’ve ever published, plus assets, all ready to download.
You won’t find vast swathes of code here, either. Instead, the idea of Source Code is to highlight a particular mechanic in a classic game, such as the pioneering boss battle in Phoenix or the falling rocks of Boulder Dash, and show you how to quickly recreate it in Python and Pygame Zero. Python is an approachable, eminently readable programming language by itself, while Pygame Zero provides an intuitive wrap-around library that allows beginners to start making games within just a few minutes. With the listings and tutorials in this digital book, you’ll soon be able to move sprites around the screen, create simple physics simulations for everything from spaceships to ricocheting pool balls, or create the beginnings of a match-three puzzler.
Once you’re feeling a bit more confident, you could even combine the projects published here to create something entirely new: how about a 2D platformer where you have to jump over pits while shooting away at the waves of enemies spiralling down from above? Or a driving game where you have to knock balls into goals for extra points? Start digging into the wealth of mechanics and snippets in this book, and you may just come up with the next indie hit. And, if you’re really bitten by the Source Code bug, the projects published here are only a sample of what you’ll find in the Wireframe archives. And, if you subscribe to the magazine, you’ll find a new entry in the Source Code series every single month.
Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.