An example of implementing a paddleball game using gimgen both for flow processing and coroutine-style statements.

Use Q and W to move the left paddle and O and P to move the right paddle. Note that all events bind to the document so you will have to click or otherwise focus on the document to get keybinding working

See code below (or even better look at source or devtools)