6.1. The endless animation loop
In a game program like Pop, the images keep changing even when you’re not giving it input. Things move. The program animates itself. Where is the point in the program that we can repeatedly loop back to for new updates?
Another characteristic thing about game programs is that the user can give input at any time, using the mouse or the keys to move the player icon. How do we synchronize these inputs with the game updates?
In any Windows program, the internal update processes and the user input processes are concurrent or parallel flows, that is, the updating is computed by the machine and the inputs are ‘computed’ by the player, with the two systems acting independently.
We’ll draw a new kind of UML diagram to ...
Get Software Engineering and Computer Games now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.