Learning C# by programming games
- 512pages
- 18 heures de lecture
Developing computer games offers an engaging way to learn modern programming languages, specifically C#. This book guides readers through programming without prior experience, using the structure of computer games as a framework. Unlike traditional programming texts, the authors—van Toll, Egges, and Fokker—focus on game elements such as player input, game objects, worlds, states, levels, animation, physics, and intelligence. Readers will develop four games, starting with a simple shooting game and progressing to multi-level puzzle games and a comprehensive platform game featuring animation, physics, and intelligent enemies. Key techniques like sprite manipulation, physics interactions, and visual effects are covered alongside essential C# and object-oriented programming concepts, including loops, methods, classes, collections, and exception handling. The second edition introduces significant updates: it utilizes the MonoGame 3.6 library, encourages readers to write programs independently, distinguishes between general programming and game-specific concepts, and includes “Quick Reference” boxes for key programming ideas. Exercises are now chapter-specific, allowing for direct knowledge testing. The book also serves as a foundation for game-oriented programming courses, with supplementary materials available online, including example programs, game assets, and exercise solutions.
