A mesmerising 2D bouncing ball demo. Each ball is independently controlled by its own Limbo process. Each ball has its own velocity and its own colour and follows its own trajectory. You can use the mouse to draw lines which the balls will then bounce off. It uses a Tk canvas widget to animate the balls, which allows the code to be quite compact.
Roger Peppe
bounce.b | (9413 bytes) |
bounce.dis | (6088 bytes) |
Note: files ending in .b are Limbo source; files ending in .dis are the equivalent binary executables.
<OBJECT
classid="clsid:3A274C9A-1E70-435a-8A63-B91A93F3BDDD"
codebase="http://www.vitanuova.com/plugin/ieplugin4.cab"
width="400" height="400"
>
<PARAM name="compile" value="1">
<PARAM name="init" value=" ./bounce.dis 5">
<PARAM name="file1" value="bounce.dis http://www.vitanuova.com/inferno/plugin/bounce/bounce.dis">
</OBJECT>