Learn Game Programming with Ruby: Bring Your Ideas to Life with GosuКНИГИ » ПРОГРАММИНГ
Название: Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu Автор: Mark Sobkowicz Издательство: Pragmatic Bookshelf Год: September 2015 (Version: P1.0) Страниц: 208 Язык: английский Формат: epub Размер: 10.1 MB
Level up your programming skills while making fast-paced, arcade-style video games. Make enemy spaceships explode in balls of fire, and escape from a pit while dodging falling boulders. You'll use the fun and approachable Ruby programming language and the Gosu 2D game library, which makes making games a breeze. Gain the skills and techniques you need to bring your own video game ideas to life with moving images and thumping sounds.
If you have a little experience programming in Ruby or another language, then you're ready to start making your own video games. In this book you'll learn concepts such as animation, keyboard and mouse movement, sounds and music, and physics as you build four exciting games.
Unlike most web pages or “normal” computer applications, 2D games do not follow a strict set of rules. Every game is different; one might be played from a top-down perspective, another might scroll from left to right, and another might be a turn-based puzzle game with square or hexagonal tiles. Some games follow a story; others can be played with friends. As you can imagine, the code for each game will be just as unique as its gameplay. This lack of a common structure can be quite intimidating. How do you start building a city-planning game, a virtual football match, or any other kind of game?
This book guides you through the process of writing four very different games. The exercises in each chapter will show you how to extend each kind of game. You can mix and match parts from different chapters, or try to mimic features from your favorite video games in Ruby. Try to structure the code differently every once in a while. Eventually, you will be able to build games that are unlike any example shown in this book.
While these games are different, some tasks—such as reacting to keyboard input, displaying image files, or playing sound effects—are the same. This book uses a library called Gosu, which provides all of these basics on Windows, OS X, and other operating systems. Gosu is a media library, not a complete game development kit. For example, there is no Map class or any collision-detection logic in Gosu because it is hard to design - much less use—a library that suits all kinds of games at the same time. This lack of reusable components is a good thing, though. It means that this book is less about learning Gosu and more about constructing games using universal programming constructs such as objects, methods, loops, and arrays. The Ruby language is a great candidate for this task.
When you're done with this book, you'll have improved your programming skills, and you'll have all the tools you need to make your own arcade-style games.
Скачать Learn Game Programming with Ruby: Bring Your Ideas to Life with Gosu
Make Your Own Scratch Games! Название: Make Your Own Scratch Games! Автор: Anna Anthropy Издательство: No Starch Press Год: 2019 Формат: epub Страниц: 192 Размер: 12.7 Mb Язык:...
Swift Game Programming for Absolute Beginners Название: Swift Game Programming for Absolute Beginners Автор: Arjan Egges Издательство: Apress Год: 2015 Формат: PDF, EPUB Размер: 19,7 Мб Язык:...
3D Game Programming for Kids Название: 3D Game Programming for Kids Автор: Chris Strom Издательство: Pragmatic Bookshelf Год: 2013 Формат: PDF Размер: 13 Мб Язык: английский /...
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.