emillon / bulletml

Tools to manipulate and interpret shmup patterns
BSD 2-Clause "Simplified" License
80 stars 5 forks source link

Hook system #29

Closed emillon closed 10 years ago

emillon commented 10 years ago

It would be nice to attach external hooks to bulletml actions. For example for a change_color action could be implemented using a function ('a -> 'a) -> ('a obj -> 'a obj) that changes some private state within the obj (where it is possible to store the color or a sprite).