Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple examples should be simpler to code #7

Open
dmose opened this issue Jun 7, 2012 · 0 comments
Open

Simple examples should be simpler to code #7

dmose opened this issue Jun 7, 2012 · 0 comments

Comments

@dmose
Copy link
Member

dmose commented Jun 7, 2012

@jlongster pointed out that https://github.com/gladiusjs/gladius/blob/develop/examples/camera-rotate/camera-rotate.js and https://github.com/cjcliffe/CubicVR.js/blob/master/samples/basic/cube_viewcontrol.html are demos of similar complexity, but the Gladius version feels a bunch heavier. It also takes twice as many lines. This seems like it creates non-trivial barrier to entry for using Gladius, and hurts ease-of-use.

The intent of this issue is to tease out the things that we can do about this. Two things I see right off the bat:

a) the CubicVR "pass in a URL for the simple case" style of resource loading is much nicer (ie simpler & higher-level) than our resource loader. I suspect we want to adopt the CubicVR style, and push most use of the resource loader down into the engine, so that callers never see any of that complexity unless they actually need it for some reason and explicitly decide to use it. Mostly, but not entirely, separately from that, we may want to look at PreloadJS and see if it makes sense to use that instead of continuing to roll our own loading code.

b) for things that are part of the default distribution (eg the cubicvr extension), I think they ought to be there by default, and the user shouldn't have to explicitly declare a dependency on them and register them manually.

There are almost certainly more things we can do, but I wanted to get these written down while they were still in my head and before getting pulled into something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant