racket/collects/frtime/demos
Greg Cooper 9fe113940e - moved README into demos/
- updated GUI bindings

svn: r2710
2006-04-18 23:43:59 +00:00
..
gui - moved README into demos/ 2006-04-18 23:43:59 +00:00
spreadsheet -cleaned up the gui demos and added Dan's new spreadsheet and documentation 2006-01-10 17:33:31 +00:00
analog-clock.ss minor changes + fixes to demos: 2005-09-09 21:41:05 +00:00
ball-on-string.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
calculator.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
circles.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
delay-mouse.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
growing-points.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
mouse.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
needles.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
net-pong-client.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
net-pong-server.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
orbit-mouse.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
piston.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
pizza.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
pong.ss - new and improved model for conditionals based on "super-lift" 2005-07-21 18:06:23 +00:00
push-pull-ball.ss - new and improved model for conditionals based on "super-lift" 2005-07-21 18:06:23 +00:00
README - moved README into demos/ 2006-04-18 23:43:59 +00:00
rotation.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
ufo.ss - parameters work with signals now 2005-08-09 03:58:49 +00:00

This directory contains the source code for a collection of demos for
FrTime.

To run the animation/GUI demos, simply open the corresponding file,
set the language level to FrTime, and Execute.  See the demo source
code for more information.

orbit-mouse.ss : A collection of balls that move in circles around
the mouse pointer.

piston.ss : Simulation of a piston/cylinder.

rotation.ss : Balls moving in circles.

delay-mouse.ss : A trail of balls following the mouse.

ball-on-string.ss : A ball chasing the mouse.

pong.ss : A simple pong/air-hockey game.  The left paddle moves with
numeric keypad; the right paddle moves with the mouse.  The 'r' key
resets the score.

net-pong-*.ss : A networked version of the pong/air-hockey game.
Currently known to work under Linux.  To play, open the client on one
machine and the server on another.  Execute both (and require if
necessary, depending on language level).  Evaluate (self) on each.
Results will be something like:

[client]
> (self)
#3(tid 128.148.38.2:1180 main)

and
[server]
> (self)
#3(tid 128.148.33.71:1178 main)

Now tell each machine about the other:
[client]
> (set-cell! server (make-tid '128.148.33.71 1178 'frtime-heart))

[server]
> (set-cell! client (make-tid '128.148.38.2 1180 'frtime-heart))

Note the differences between the #3(tid ...) output and the (make-tid ...)
commands---there is no colon (:) between the host and port, and main becomes
'frtime-heart.

After setting the cells, complete the connection by clicking the left
mouse button in both animation windows.  The player running the server
can reset the score by pressing 'r'.

pizza.ss : A simple "pizza ordering" user interface based on an HtDP
exercise.

calculator.ss : A simple calculator interface, also based on an HtDP
exercise except that the result updates continuously as the arguments
and operator change.

Robb Cutler's Examples

analog-clock.ss : An animated real-time clock.  A slider adjusts the radius
of the face.  Click and drag to move the face around.

growing-points.ss : A field of points that grow as the mouse approaches.

needles.ss : A field of needles that point at the mouse.