Computer SciencePractical Game Programming
Not rated yetRate this bookExplore game development through C/C++ and Allegro 5. Harris Wang and Walter Ridgewell connect programming, graphics, sound, and design in a practical textbook for upper-level undergraduate learners and independent developers.
Read on the publisher’s website. Opens in a new tab.
FreeAbout this book
Published in June 2026 by Remix, an imprint of Athabasca University Press, Practical Game Programming follows the development of interactive games from core programming tasks to complete projects. Its emphasis is applied: technical features become components of a playable experience rather than isolated demonstrations.
The publisher describes coverage of input, graphics, audio, file handling, timing, collision detection, and advanced programming. Design, prototyping, interfaces, testing, and quality assurance connect implementation with the player’s experience. Genre-based projects provide opportunities to bring these strands together.
The publisher lists 560 pages; the PDF identifier is ISBN 9781998944224. This page provides an original guide to the opening section, with official links for the complete book. The full text remains with the publisher under CC BY-NC-SA 4.0; its cover has separate reuse restrictions.
Book summary
Harris Wang and Walter Ridgewell’s Practical Game Programming uses C/C++ and Allegro 5 to connect programming concepts with playable projects. Eight main chapters develop input, timing, graphics, sprites, backgrounds, design, and advanced systems before a large project chapter. The 2026 source is best approached as a sequence of implementations to inspect and modify, with deliberate attention to game state and the difference between a feature that runs and one that behaves consistently.
Chapter-by-chapter summaries
Chapter 1: Introduction
The opening situates game programming within the history and variety of video games, then introduces a development roadmap, the programming environment, and Allegro 5. These topics establish more than software setup: a genre and intended experience create different implementation demands. The roadmap connects an idea with the work required to realize it. Understanding the environment also helps separate a build or library problem from an error in the game logic when the first example does not behave as expected.
Chapter 2: Essentials with Allegro
The common program structure brings input, collision detection, sound, timing, and files into a working game. These systems need coordination: an input event changes state, a collision depends on the representation of objects, and timing affects how the world advances. The chapter encourages examining the relationship among update, interaction, and output rather than treating each feature as an independent code fragment. File use also distinguishes persistent information from the state held only during one run.
Chapter 3: Graphics
Bitmap creation, display, scaling, rotation, viewports, transformations, smoothing, shaders, and alpha handling provide different ways to construct the visible result. The chapter connects representation with the operation applied to it. A viewport changes what is shown, while a transformation changes how coordinates are interpreted. Understanding those distinctions is more useful than memorizing one successful drawing call. Resolution independence and compositing also show that a visually plausible result needs to remain correct when the display or layering changes.
Chapter 4: Sprites
Sprites connect visible objects with the state and operations used to animate or manage them. The chapter moves from fundamentals to handling routines, blending, and advanced use. Animation is not just a sequence of pictures: the selected image, position, timing, and interaction must agree with the underlying object. The practical test is whether the sprite behaves coherently across different actions and frame conditions, not merely whether an animation plays once in an isolated demonstration.
Chapter 5: Backgrounds
Static, scrolling, dynamic, and three-dimensional backgrounds support different kinds of game spaces. The chapter makes the relationship between the environment, camera or viewport, and moving objects explicit. Scrolling a view should not accidentally change the meaning of an object's world position. Comparing background methods helps identify what needs to be stored, updated, and drawn. A suitable approach follows from the intended experience and constraints rather than assuming the most visually complex option is automatically the best design.
Chapter 6: Design and Development
The design chapter connects an initial concept with a detailed plan and implementation. An appealing idea needs rules, interactions, scope, and an account of what makes the experience work. Design documentation helps expose unanswered questions before they become inconsistent code. The chapter also provides a basis for evaluating a prototype: the question is whether the implemented mechanics produce the intended activity, not only whether every planned feature has been added.
Chapter 7: Advanced Topics
Multithreading, shaders, networking, AI, optimization, custom interfaces, and audio extend the earlier foundations. Each introduces new coordination questions. Concurrency requires attention to shared state; networking adds communication and consistency; optimization needs evidence about where resources are spent. The chapter's topics should be studied in relation to a defined problem. Adding a sophisticated technique without identifying its purpose can make the game harder to understand without improving the player's experience.
Chapter 8: Game Development Projects
The project chapter applies the tools across several genres and utilities. Its examples are useful comparisons because the same programming facilities serve different rules, representations, and interaction patterns. Readers should identify the state model and main update cycle before changing an example. A successful extension preserves consistency across input, rules, feedback, and progress rather than attaching a new visual feature that does not fit the rest of the game.
Projects 8.1–8.3: Space Shooter, Tank War, and Adventure
The action and platform examples connect movement, timing, collision, and feedback, while the adventure project emphasizes a different progression through situations and actions. Comparing them reveals which systems are reusable and which depend on genre-specific rules. The learning task is to explain the differences in state and interaction, then make a controlled modification whose effect can be predicted and tested.
Projects 8.4–8.7: Arcade, Board, Emulator, and Puzzle
These projects offer contrasting forms of play and representation. A board or puzzle task may depend more explicitly on discrete legal states and transitions, while an arcade example foregrounds continuous interaction and timing. The emulator project adds another perspective on representing a defined system. Study should identify the model each program implements rather than assume that similar-looking interface elements imply identical internal logic.
Projects 8.8–8.11: Role-Playing, Sports, Strategy, and Utilities
The closing examples broaden the range of systems assembled from the earlier material. They provide opportunities to compare progression, decisions, simulated activity, and supporting tools. A practical review follows one action from input through state change to visible or audible feedback. This exposes whether the implementation's rules remain understandable when several subsystems interact and helps distinguish a reusable component from a feature tied closely to one project.
Study instructions
- Reproduce a small source example in the specified environment and record compiler and library versions.
- Draw the relationship among input events, game state, update timing, collisions, and rendering before changing code.
- Add one feature at a time and test ordinary, boundary, and repeated-action cases.
- Compare two chapter-eight projects by their state models and rules, not only their appearance.
- Use a design note to explain a proposed change and evaluate whether the resulting play matches its purpose.
Questions for reflection
- What information belongs to the game world, and what belongs only to the current view?
- How could a timing assumption make a game behave differently on another machine?
- Which advanced technique addresses a demonstrated problem rather than adding complexity for its own sake?
Sources and coverage
This original study guide follows the complete linked source edition and all of its substantive chapters or named teaching sections. It condenses their main ideas and relationships; the study tasks are guidance for reading alongside the complete resource. It does not reproduce the source exercises or answer key. Book source; Complete source PDF.
This page provides book information and study material. Full-text access is provided by the original publisher or authorised source; a listing does not grant permission to republish the book.
Read our Library Access & Copyright policyIntegrated systems
Recognise how several computing skills contribute to an interactive game.
Tool roles
Distinguish the programming language, supporting library, and build tools.
Learning roadmap
Use the opening to identify later topics for closer study.
Reflective practice
Keep an independent record of questions and experiments.
Reader ratings & reviews
Share your thoughts
Your review helps other students choose the right resources.









