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.

director:changeScene("moduleName", MyCustomEffect)

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

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

director:addParamsForModule("moduleName", {param1: "value1", param2: 222})

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

1
2
local params = {param1: "value1", param2: 222}
SettingsScreen.new(params)
views:1562 update:2011/10/13 9:25:17
corona forums © 2003-2011