[Haskell-cafe] [reactive] A pong and integrate

Patai Gergely patai_gergely at fastmail.fm
Wed May 19 02:41:39 EDT 2010

> I that the saw sleep time at each loop is fixed (0.02). So game speed
> will
> depend on processor speed, since with a more powerful CPU frames will be
> computed quicklier?
Yes, that's how it works.

> So we don't have (with the Simple branch) some way to say "I want my
> sprite
> to move 100 pixels *per second* on the left", except if we provide
> ourselves a time signal?
That's exactly the case, although I'd probably provide a delta time
signal. The Simple version is a discrete stream library, and it doesn't
pretend to have continuous-time abstractions.


http://www.fastmail.fm - Access your email from home and the web

More information about the Haskell-Cafe mailing list