- Full Description
2D games are hugely popular across a wide range of platforms and the ideal place to start if you’re new to game development. With Learn 2D Game Development with C#, you'll learn your way around the universal building blocks of game development, and how to put them together to create a real working game.
C# is increasingly becoming the language of choice for new game developers. Productive and easier to learn than C++, C# lets you get your games working quickly and safely without worrying about tricky low-level details like memory management. This book uses MonoGame, an open source framework that's powerful, free to use and easy to handle, to further reduce low-level details, meaning you can concentrate on the most interesting and universal aspects of a game development: frame, camera, objects and particles, sprites, and the logic and simple physics that determines how they interact.
In each chapter, you'll explore one of these key elements of game development in the context of a working game, learn how to implement the example for yourself, and integrate it into your own game library. At the end of the book, you’ll put everything you’ve learned together to build your first full working game! And what’s more, MonoGame is designed for maximum cross-platform support, so once you’ve mastered the fundamentals in this book, you’ll be ready to explore and publish games on a wide range of platforms including Windows 8, MAC OSX, Windows Phone, iOS, Android, and Playstation Mobile. Whether you're starting a new hobby or considering a career in game development, Learn 2D Game Development with C# is the ideal place to start.
What youll learn
- Know your way around the world of game design and the process of designing a game from scratch.
- Understand the basic architecture of a 2D game engine and develop your own game library.
- Work with the MonoGame framework and use it to build your own 2D interactive games.
- Learn and implement simple in-game pseudo autonomous behaviors.
- Understand and implement the math and physics underlying realistic game interactions.
- Give your game impact with graphic effects, and audio and special effects.
Who this book is for
This book is perfect for game enthusiasts, hobbyists, and anyone who is interested in building interactive games but is unsure of how to begin. It assumes no background in computer graphics or game development, but readers should be familiar with C# or another object-oriented language.
- Table of Contents
Table of Contents
- Introducing 2D Game Development in C#
- Getting to Know the MonoGame Framework
- 2D Graphics, Coordinates, and Game State
- Getting Things Moving
- Pixel-Accurate Collisions
- Game Object States and Semiautonomous Behaviors
- Sprites, Camera, Action!
- Particle Systems
- Building Your First 2D Game
- Source Code/Downloads
If you think that you've found an error in this book, please let us know by emailing to firstname.lastname@example.org . You will find any confirmed erratum below, so you can check if your concern has already been addressed.On page 37:
Not really an error, it's more like a suggestion.
In the "ThumbStickState" method for the AllThumbSticks struct, the Y values could be inverted, because the Y values of the Vector2 returned from the thumb sticks are inverted, and it gets kinda confusing when you press UP on the keyboard and the image moves down.