SplatJS / splat-ecs

MIT License
12 stars 3 forks source link

Make it possible to pass initial arguments into a scene from scenes.json #41

Closed CaldwellYSR closed 8 years ago

CaldwellYSR commented 8 years ago

From what I can see here the sceneArgs object is always empty on the initial call of makeScene. Would it make sense for "global" scene config to allow an arguments object in scenes.json that gets read there? Is there already another way to do this outside of scenes.json that I'm not thinking about?

ericlathrop commented 8 years ago

I'm not sure what this would solve. I think you should just have a default set of arguments if none are passed in. I do something like var level = game.arguments.level || 1.