z0w0 / helm

A functionally reactive game engine, with headgear to protect you from the headache of game development provided.
http://helm-engine.org/
MIT License
600 stars 69 forks source link

Change `subscriptionsFn` to take a model as an argument #116

Open z0w0 opened 7 years ago

z0w0 commented 7 years ago

This is how Elm works, and I have to admit after working on an Elm project recently - it's 10x better then just returning subscriptions for the whole game state. It allows you to conditional define which subscriptions are needed at any point of runtime.

I think this is definitely possible with a few changes to how Elerea is inter-op'd with, I'm just struggling to realise what changes are required at the moment..