Xem mẫu

TECHNOLOGY IN ACTION™ Learn Unity for 2D Game Development Alan Thorn For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to access them. Contents at a Glance About the Author���������������������������������������������������������������������������������������������������������������xiii About the Technical Reviewer��������������������������������������������������������������������������������������������xv Acknowledgments������������������������������������������������������������������������������������������������������������xvii Introduction�����������������������������������������������������������������������������������������������������������������������xix ■Chapter 1: Unity Basics for 2D Games�������������������������������������������������������������������������������1 ■Chapter 2: Materials and Textures ����������������������������������������������������������������������������������27 ■Chapter 3: Quick 2D Workflow�����������������������������������������������������������������������������������������57 ■Chapter 4: Customizing the Editor with Editor Classes���������������������������������������������������85 ■Chapter 5: Procedural Geometry and Textured Quads���������������������������������������������������101 ■Chapter 6: Generating Atlas Textures����������������������������������������������������������������������������121 ■Chapter 7: UVs and Animation���������������������������������������������������������������������������������������139 ■Chapter 8: Cameras and Pixel Perfection����������������������������������������������������������������������163 ■Chapter 9: Input for 2D Games��������������������������������������������������������������������������������������189 ■Chapter 10: Getting Started with a 2D Game�����������������������������������������������������������������213 iii iv Contents at a Glance ■Chapter 11: Completing the 2D Card Game�������������������������������������������������������������������241 ■Chapter 12: Optimization�����������������������������������������������������������������������������������������������259 ■Chapter 13: Wrapping Things Up�����������������������������������������������������������������������������������273 Index���������������������������������������������������������������������������������������������������������������������������������281 Introduction If you log on to any online or mobile marketplace for games and browse the titles offered today, it’s likely that the majority of games you see will be 2D and not 3D. If you think back over the relatively short history of video games, or if you listen to industry veterans talking about their inspirations and favorite games, it’s likely that the titles most mentioned are in the 2D style. Frequently listed titles in these video game reminiscences include: Pacman, Sonic the Hedgehog, Super Mario Brothers, Tetris, Lemmings, Arkanoid, Bejewelled, Angry Birds, Plants vs Zombies, Minesweeper, Civilization, Donkey Kong, and Sim City. Despite the manifold differences between all these landmark games both new and old, they all share the common ingredient of 2D-ness; of having their graphics presented in a very specific way that doesn’t rely on three-dimensional space. In short, the 2D style represents some of the most well-known titles in video games history, and it is also a style that is alive and well today. 2D games are not simply stuck in history. They are not a thing of the past; a phenomena that has been and is no longer relevant to the demands of contemporary gamers. Rather, these games represent a significant and lucrative segment of the video game market. Often has been the occasion when this or that learned person has predicted the demise of 2D games, and yet despite all such predictions 2D games have not gone away. This resilience and strength is due primarily to their general popularity, charm, and stylistic simplicity. 2D imparts a classical and timeless feel to games that is technically difficult to replicate by alternative means. For this reason, gamers keep coming back to the 2D style and find within it new ways of enjoying games and experiencing richness. 2D games today play an especially prominent role in two large market areas, and for different reasons. These markets are the casual game market and the so-called “indie games market.” In the casual games market, including games such as Mystery Case Files and Bejewelled, the 2D style is deployed to add an accessible “pick up and play” feel that does not require the user to learn any complex control systems or to concern themselves with moving a camera in 3D space. The Indie Games market, including games such as Retro City Rampage and Super Meat Boy, have used the 2D style to create a retro or old school feel that is popular to a general audience. Whatever your reasons for wanting to make 2D games, 2D games offer a positive and promising future for game developers willing to embrace them with both hands and a with a can-do frame of mind. 2D provides a means of creating games that differ from the norm and from the mainstream, and for creating very distinctive flavors that all have a special kind of classical vibe. This book can help you get started with confidence on that road to making successful 2D games. There are many routes leading to that destination. Some are longer than others, and some are smoother than others. xix ... - tailieumienphi.vn
nguon tai.lieu . vn