Skip to content

Comment on Elm – functional reactive language for interactive applicationsparent

Comments

The code for the Mario demo has a signal every 1/25th of a second due to the (fps 25) function call in it.

I'm not entirely sure why its updating more on keyboard, I just started using Elm but it could be related to the demo combining fps and key events into a single pipe and reacting on it. So by hitting keys you may be emitting extra events it needs to react to.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.