Drawing is only half of a frame
Picture a square moving across a window. A program needs a position for the square, a way to paint the frame and a moment at which to look for input. If it paints continuously without checking events, the picture might look lively while the window ignores its visitor. If it only waits for input, an unattended animation stands still.
Guile-SDL connected Scheme code running in Guile with SDL. That boundary is the interesting part of this collection. The logic for the next position can live in the language the author enjoys writing. The multimedia library provides facilities on the other side. The moving square is an explanatory example for this edition.
| Question | Where to look in a demonstration |
|---|---|
| What changes? | The state that describes the scene between frames. |
| What do I see? | The drawing operations that turn state into pixels. |
| What did I do? | The events read from the window or input device. |
Why the old address survived
Nguyen’s maintainer note credits early work around 2000 or 2001 to Alex Shinn, Vikram Subramanian and Joel Smith. It describes receiving the repository from Shinn. The same page dates a move to nongnu.org to September 2010 and acceptance into GNU to April 2013. This address remained valuable as a personal account of the project and as a route to related demonstrations.
When reading a historical example, write down its release number before choosing a manual. The archive page mentions version 0.5.2 in March 2015. An example written against one combination of Guile and SDL may assume interfaces absent from another. The dated page tells you what the author was documenting. GNU’s release directory gives you a separate place to check the published files.