I'm playing with new feature ideas over on Github

Hi folks,

I’ve made a fork of Director to play around with some ideas I had for useful new features. My project is over on Github:

https://github.com/joshtynjala/director.lua

So far, I’ve added two things:

  1. Custom Effects. Don’t like “moveFromRight”, “flip”, “fade” or any of the other built-in effects? Create your own and pass them in.

[lua]director:changeScene(“moduleName”, MyCustomEffect)[/lua]

See the readme for full details about creating custom effect modules.

  1. Simple dependency injection. Rather than polluting the global namespace, I prefer passing important variables (like settings or whatever) into scenes as they’re created.

[lua]director:addParamsForModule(“moduleName”, {param1: “value1”, param2: 222})[/lua]

Director will pass the table as the first parameter when it calls new() to create the scene. Effectively, it does this for you:

[lua]local params = {param1: “value1”, param2: 222}
SettingsScreen.new(params)[/lua] [import]uid: 38950 topic_id: 8802 reply_id: 308802[/import]